Exemple #1
0
//--------------------------------------------------------------------
// CMyWinApp's member
//--------------------------------------------------------------------
BOOL CMyWinApp::OnIdle(LONG lCount)
{
   CMyFrameWnd* pWnd = (CMyFrameWnd*)m_pMainWnd;
   pWnd->IdleTimeHandler(lCount);

   return TRUE;
}
Exemple #2
0
BOOL CMyWinApp::InitInstance(){
	CMyFrameWnd* pFrame = new CMyFrameWnd;
	m_pMainWnd = pFrame;
	pFrame->Create(NULL,"MFCSplit");
	pFrame->ShowWindow(SW_SHOW);
	pFrame->UpdateWindow();

	return true;
}
Exemple #3
0
BOOL CMyWinApp::InitInstance(){
	CMyFrameWnd* pFrame = new CMyFrameWnd;
	pFrame->Create(NULL,"MFCToolBar",WS_OVERLAPPEDWINDOW,
		CFrameWnd::rectDefault,NULL/*,MAKEINTRESOURCE(IDR_MENU1)*/);
	m_pMainWnd = pFrame;
	pFrame->ShowWindow(SW_SHOW);
	pFrame->UpdateWindow();
	return true;
}
Exemple #4
0
BOOL CMyWinApp::InitInstance(){
	//此函数的this为theApp
	CMyFrameWnd* pFrame = new CMyFrameWnd;
	pFrame->Create(NULL,"MFCBase");
	m_pMainWnd = pFrame;
	//theApp.m_pMainWnd
	pFrame->ShowWindow(SW_SHOW);
	pFrame->UpdateWindow();
	return true;
}