Messagebox Button Combination IDS: MB_ABORTRETRYIGNORE ABORT, RETRY, IGNOREMB_OK OKMB_OKCANCEL OK, CANCELMB_RETRYCANCEL RETRY, CANCELMB_YESNO YES, NOMB_YESNOCANCEL YES, NO, CANCEL
Messagebox icon IDS: MB_ICONIONFORMATION INFORSITIONAL ICONMB_ICONQUESTION Question Mark Iconmb_iconstop Stop Sign Iconmb_iconexclamation Exclamation Mark ICion
MessageBox Return Value IDS: iDabort AbortidRetry RetryidIgnore Ignores Yesidno Noidok Okidcancel Cancel
CommON Dialog Classes: CFiledialog File SelectionCFontDialog Font SelectioncolordialDialog Color SelectioncpageSetupDialog Page Setup for PrintingCprintDialog PrintingCfindReplaceDialog Find and Replace
Custom CFileDialog: m_ofn can set for the attribute, and to customize: typedef struct tagOFN {DWORD lStructSize; HWND hwndOwner; HINSTANCE hInstance; LPCTSTR lpstrFilter; LPTSTR lpstrCustomFilter; DWORD nMaxCustFilter; DWORD nFIlterIndex; LPTSTR lpstrFile; DWORD nMaxFile; LPTSTR lpstrFileTitle; DWORD nMaxFileTitle; LPCTSTR lpstrInitialDir; LPCTSTR lpstrTitle; DWORD Flags; WORD nFileOffset; WORD nFileExtension; LPCTSTR lpstrDefExt; DWORD lCustData; LPOFNHOOKPROC lpfnHook; LPCTSTR lpTemplateName;} OPENFILENAME;
The Pen Class: CPDC DC (this); CPEN LPEN (PS_SOLID, 1, RGB (0,0,0)); Dc.SelectObject (& lpen);
The Brush Class: Cbrush LPatterbrush (Hs_BDiagonal, RGB (0, 0, 255)); use Bitmap as the background cbitmap m_bmpbitmap; m_bmpbitmap.loadbitmap (idb_mybitmap); CBRUSH LbitMapbursh;
The bitmap class: Method for adding a picture in the program: 1. Add 2. Use of the ID of the resource file 2. Use the ActiveX mode .3. Use APIHbitmap Hbitmap = (HbitMap) :: loading (), m_sfilename, image_bitmap, 0, 0, lr_loadromfile | lr_createibsection); m_bmpbitmap.attach (hbitmap); // m_bmpbitmap is CBITMAP
A DC is four subclasses of the CPAINTDC, CClientDC, CWindowDC, and CMetafileDC.