Home > Software engineering >  MFC TextOut () why don't you show
MFC TextOut () why don't you show

Time:09-30

Void CMainFrame: : OnPaint ()
{
CPaintDC dc (this);//device context for painting
BOOL bRes=FALSE;
BRes=dc. TextOut (100, 300, _T (" Hello MFC "));
}

CodePudding user response:

In the View of ontouch draw

CodePudding user response:

In the MainFrame is the view, so is covered by the view, close all the view (MDI)

CodePudding user response:

CMainFrame generally there are a MDIClient type before the window, obscured, shows, you can't see

CodePudding user response:

On the first floor is solution!!!!!

CodePudding user response:

Certainly not displayed, if it is a dialog box to display output in the onpaint, see you this should be a single document, it should be in ontouch output display
  • Related