Home > Back-end >  MFC single document application add dialog
MFC single document application add dialog

Time:09-25

BOOL CMainFrame: : OnCreateClient (LPCREATESTRUCT LPCS, CCreateContext * pContext)
{
//TODO: add in this dedicated code and/or call the base class
if(! Splitter. CreateStatic (this, 1, 2))//cutting the client area is 1 row two column
Return FALSE;
if(! Splitter. CreateView (0, 0, RUNTIME_CLASS (Copencvtest246_02View), CSize (0, 0), pContext))//in the first line of the first column shows the View
Return FALSE;
if(! Splitter. CreateView (0, 0, RUNTIME_CLASS ( CTestDlg ), CSize (0, 0), pContext))//in the first line of the second column to add dialog
Return FALSE;
CRect rc;
GetClientRect (& amp; Rc);//lake the size of the client area
Int width;
Width=rc. Width () + 200;//set according to the size of the region dialog
Splitter. SetColumnInfo (0, width, 0).
Splitter. RecalcLayout ();
Return TRUE;

//return CFrameWnd: : OnCreateClient (LPCS pContext);
}



Results have been error: error C2653: "CTestDlg:" is not a class or namespace name
Don't know what's the matter, seek expert advice
  • Related