//IE will call this method when the commandbar button or the menu is clicked. STDMETHODIMP CModernIEConfigButton::Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdExecOpt, VARIANTARG *pvaIn, VARIANTARG *pvaOut) { CConfigDialog d; d.DoModal(); return S_OK; }
INT_PTR CALLBACK CConfigDialog::DialogProcStatic(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { if(m_hWindow == NULL) { m_hWindow = hDlg; } CConfigDialog *pThis = (CConfigDialog*)m_lSaveThis; /// typecast stored this-pointer to CBaseDialog pointer return(pThis->DialogProc(hDlg, message, wParam, lParam)); }
void CMCUDemoDlg::OnMenuConfig() { // TODO: 在此添加命令处理程序代码 CConfigDialog dlg; dlg.DoModal(); /*CSysCfgPage syscfg; CConfigPropertySheet sheet( _T( "设置" ), this ); sheet.AddPage( &syscfg ); sheet.DoModal();*/ }
void CConfigDialog::ScreenSourceChanged() { CConfigDialog *pThis = (CConfigDialog*)m_lSaveThis; /// typecast stored this-pointer to CBaseDialog pointer if (pThis) pThis->InitScreenSource(); }
void CMCUDemoDlg::OnBnClickedButtonConfig() { // TODO: 在此添加控件通知处理程序代码 CConfigDialog dlg; dlg.DoModal(); }