#define WM_DEBUG WM_USER + 1999 |
class CStreamServerDlg : public CDialog { // Generated message map functions //{{AFX_MSG(CStreamServerDlg) ... //}}AFX_MSG afx_msg void OnDebug(WPARAM wParam, LPARAM lParam); ... } |
BEGIN_MESSAGE_MAP(CStreamServerDlg, CDialog) ... ON_MESSAGE(WM_DEBUG, OnDebug) END_MESSAGE_MAP() void CStreamServerDlg::OnDebug(WPARAM wParam, LPARAM lParam) {} |
pWnd->PostMessage(WM_DEBUG, (WPARAM)p, 0) ) |