如何在dialog中将消息从dialog1传送或发送到dialog2(dialog1的子对话框)
答案 0 :(得分:1)
1)#define MYMSG WM_USER + 3
2)定义并实现disp。功能在对话框中LRESULT OnMyMsg(WPARAM w, LPARAM l);
3)在您的留言地图ON_MESSAGE(MYMSG,OnMyMsg)
4)发送消息myDlgPtr->SendMessage(MYMSG,0,0);
http://msdn.microsoft.com/en-us/library/ms644950(v=vs.85).aspx