如何在MFC中将对话框1的对话框中的消息通信或发送到对话框2(对话框1的子对话框)
1) #define MYMSG WM_USER + 3
2) define and implement disp. function in your dialog LRESULT OnMyMsg(WPARAM w, LPARAM l);
3) Add code to your message map ON_MESSAGE(MYMSG,OnMyMsg)
4) Send message myDlgPtr->SendMessage(MYMSG,0,0);
http://msdn.microsoft.com/en-us/library/ms644950(v=vs.85).aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.