6.3w+
社区成员
BOOL CMyDlg::OnInitDialog()
{
com1.SetWnd(this->m_hWnd); //把 com1 和窗口 句柄联系起来
}
HWND FindWindow(
LPCTSTR lpClassName, // pointer to class name
LPCTSTR lpWindowName // pointer to window name
);
BEGIN_MESSAGE_MAP(CMfccApp, CWinApp)
//{{AFX_MSG_MAP(CMfccApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()