DLL中的非模态对话框如何响应鼠标按键信息!
BOOL CMyStudyDllApp::InitInstance()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
save_hInstance = AfxGetResourceHandle();
AfxSetResourceHandle(theApp.m_hInstance);
m_pDlgProcess = new CZDlg_Process;
m_pDlgProcess->Create(CZDlg_Process::IDD);
AfxSetResourceHandle(save_hInstance);
return CWinApp::InitInstance();
}
void CMyStudyDllApp::ShowProcessDlg()
{
m_pDlgProcess->ShowWindow(SW_SHOW);
SetWindowPos(m_pDlgProcess->m_hWnd,HWND_TOP,300,100,100,100,SWP_NOSIZE);
}