16,551
社区成员
发帖
与我相关
我的任务
分享
#define WM_MY_MESSAGE (WM_USER+100)
LRESULT CMyDlg::OnMyMessage(WPARAM wParam, LPARAM lParam)
{
// TODO: 处理用户自定义消息
MessageBox("success");
return 0;
}
afx_msg LRESULT OnMyMessage(WPARAM wParam, LPARAM lParam);
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
void CTestDlg::OnButton1()
{
// TODO: Add your control notification handler code here
CMyDlg dlg;
// dlg.m_hWnd;
dlg.DoModal();
// PostMessage(dlg.m_hWnd,0,0);
}
#define WM_MY_MESSAGE (WM_USER+100)
LRESULT CMyDlg::OnMyMessage(WPARAM wParam, LPARAM lParam)
{
// TODO: 处理用户自定义消息
MessageBox("success");
return 0;
}
afx_msg LRESULT OnMyMessage(WPARAM wParam, LPARAM lParam);
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
void CMyDlg::OnButton1()
{
// TODO: Add your control notification handler code here
PostMessage(WM_MY_MESSAGE,0,0);
}