//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;
}
Beispiel #2
0
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));
}
Beispiel #3
0
void CMCUDemoDlg::OnMenuConfig()
{
	// TODO: 在此添加命令处理程序代码
	CConfigDialog dlg;
	dlg.DoModal();
	/*CSysCfgPage syscfg;

	CConfigPropertySheet sheet( _T( "设置" ), this );
	sheet.AddPage( &syscfg );
	sheet.DoModal();*/

}
Beispiel #4
0
void CConfigDialog::ScreenSourceChanged()
{
	CConfigDialog *pThis = (CConfigDialog*)m_lSaveThis; /// typecast stored this-pointer to CBaseDialog pointer
	if (pThis)
		pThis->InitScreenSource();
}
Beispiel #5
0
void CMCUDemoDlg::OnBnClickedButtonConfig()
{
	// TODO: 在此添加控件通知处理程序代码
	CConfigDialog dlg;
	dlg.DoModal();
}