P
Peter
Hi,
I try to display a simple text on the screen (MFC). I used
CMyAppView::OnDraw function but the application doesn't call it while
running. I tried to overload CMyAppView::OnUpdate(...) function and
inside call the OnDraw. The code looks like this:
void CMyAppView::OnUpdate(...)
{
//...//
CDC* pDC = GetDC();
this->OnDraw(pDC);
}
////////////////////////////////
void CMyAppView::OnDraw(CDC* pDC)
{
//...//
pDC->TextOut(1,1,"Display this text!");
}
And of course the OnDraw is now called but the TextOut don't display
anything!
The program does not generate any errors during compilation nor while
running, yet the text does no appear on the screen. Why is that and
what to do with it ?
Thanks in advance
Peter
I try to display a simple text on the screen (MFC). I used
CMyAppView::OnDraw function but the application doesn't call it while
running. I tried to overload CMyAppView::OnUpdate(...) function and
inside call the OnDraw. The code looks like this:
void CMyAppView::OnUpdate(...)
{
//...//
CDC* pDC = GetDC();
this->OnDraw(pDC);
}
////////////////////////////////
void CMyAppView::OnDraw(CDC* pDC)
{
//...//
pDC->TextOut(1,1,"Display this text!");
}
And of course the OnDraw is now called but the TextOut don't display
anything!
The program does not generate any errors during compilation nor while
running, yet the text does no appear on the screen. Why is that and
what to do with it ?
Thanks in advance
Peter