相關詞條
- CMyApp
CMyApp類是MFC類的四個主要類之一。它是應用程式運行的基礎,其父類是MFC中的CWinApp。CMyApp類除了構造函式,另一個重要的成員函式是InitInstance。一個CMyApp類型...
- DoWaitCursor
CMyApp *theApp=(CMyApp *)AfxGetApp( );CMyDialog dlg;//顯示模式對話框dlg.Domodal;//顯示等待游標theApp->DoWaitCursor(1);...
- SetDialogColor
例如:Bool CMyApp::InitInstance(){//Standard initialization...//將對話框背景顏色設定為黃色(第一個參數)//將對話框文本顏色設定為藍色(第二個參數)SetDialog...
- OpenDocumentFile
{ public: CTestApp( ); CString str;//添加的對話框變數 ... }//在InitInstance()中調用OpenDocumentFile(mlpCmdLine);CMyApp *theApp=(CMyApp *)AfxGet...
- IsIdleMessage
BOOL CMyApp::IsIdleMessage(MSG * pMsg){if (!CMyApp::IsIdleMessage(pMsg)||pMsg->message==WM_TIMER)return FALSE;elsereturn true;...
- DoMessageBox
CMyApp *theApp=(CMyApp *)AfxGetApp( );//判斷是否有Embedding選項if(theApp->DoMessageBox("是否保存文章的修改?",MB_OKCANCEL,NULL))...
- CloseAllDocuments
//CMyApp類型指針theApp ... }CMyApp *theApp=(CMyApp *)AfxGetApp( );//關閉所有打開的文檔並結束會話theApp->CloseAllDocuments(TRUE);...