VC控制字体源码 BOOL CCtrlFontApp::InitInstance() { AfxEnableControlContainer(); // Standard initialization // If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the specific
//bmp to gif void CConvertGIfDlg::OnBrown() { CFileDialog dlg(TRUE,"bmp",NULL,NULL,"位图文件(BMP)|*.bmp",this); if (dlg.DoModal()==IDOK) { m_FileName = dlg.GetPathName(); UpdateData(FALSE); } if (!m_FileName.IsEmpty()) { HANDLE han dle = ::LoadImage(Afx
具有查询删除BOOL CTMSDlg::OnInitDialog() { CDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX AppendMenu(MF_SEPARAT
Follow these 10 easy steps to build the OutLookRichEdit control: Insert a rich edit control into the dialog. Call AfxInitRichEdit() in the InitInstance of the App class or in InitDialog. If it does not exist, copy OutLookRichEdit.cpp and OutLookRich