自定义消息

.CPP文件

第一步

#define WM_MySHOWDINGDU (WM_USER+100)
#define WM_MySTOP (WM_USER+101)
#define WM_UpLoadSucce (WM_USER +102)
#define WM_UPRESULT (WM_USER + 103)
#define WM_CANCELUPLOAD (WM_USER + 104)

第二步;


BEGIN_MESSAGE_MAP(CScreenDefineView , CFormView)

ON_MESSAGE( WM_MySHOWDINGDU , Jingdutiao )
ON_MESSAGE( WM_UpLoadSucce , UPLOadSucce )
ON_MESSAGE( WM_UPRESULT , UPLOADRESULT)
ON_MESSAGE( WM_CANCELUPLOAD , CancleUpload)

.h文件;

afx_msg LRESULT Jingdutiao(WPARAM wParam, LPARAM lParam);// DDX/DDV 支持
afx_msg LRESULT UPLOadSucce(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT UPLOADRESULT(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT CancleUpload(WPARAM wParam, LPARAM lParam);

 

posted @ 2013-07-12 09:12  友琼  阅读(151)  评论(0编辑  收藏  举报