S
sgrm123
Guest
Hi,
My application is MFC MDI application.
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMDIFrameWndEx::OnCreate(lpCreateStruct) == -1)
return -1;
CMainFrame* pFrame = (CMainFrame*)AfxGetMainWnd();
}
Why AfxGetMainWnd() returns NULL in my application
Continue reading...
My application is MFC MDI application.
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMDIFrameWndEx::OnCreate(lpCreateStruct) == -1)
return -1;
CMainFrame* pFrame = (CMainFrame*)AfxGetMainWnd();
}
Why AfxGetMainWnd() returns NULL in my application
Continue reading...