ArvindKumar17
Programmer
hi friends,
I have created my own class and put the member vairables there. They are being intialised in the class contructor. But when I create an instance of the class in ONDraw() funtion of its view, I am having no response. Can anyone say why ? ? ?
Here goes the code
myClass
CText
in CText()
{
m_position = CRect(10,10,100,100);
}
void CHammyView::OnDraw(CDC* pDC)
{
CHammyDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
CText *m = new CText();
CText->ShowWindow(SW_SHOW);
}
I have created my own class and put the member vairables there. They are being intialised in the class contructor. But when I create an instance of the class in ONDraw() funtion of its view, I am having no response. Can anyone say why ? ? ?
Here goes the code
myClass
CText
in CText()
{
m_position = CRect(10,10,100,100);
}
void CHammyView::OnDraw(CDC* pDC)
{
CHammyDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
CText *m = new CText();
CText->ShowWindow(SW_SHOW);
}