//HookTest.cpp
BOOL CHookTestApp::InitInstance()
{
InitCommonControls();
CWinApp::InitInstance();
AfxEnableControlContainer();
SetRegistryKey(_T("应用程序向导生成的本地应用程序"));
CHookTestDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 在此放置处理何时用“确定”来关闭
//对话框的代码
}
else if (nResponse == IDCANCEL)
{
// TODO: 在此放置处理何时用“取消”来关闭
//对话框的代码
}
return FALSE;
}
//HookTestDlg.cpp
BOOL CHookTestDlg::OnInitDialog()
{
// TODO: 在此添加额外的初始化代码
InstallLaunchEv();
return TRUE; // 除非设置了控件的焦点,否则返回 TRUE
}