Why can't PretranslateMessage can't make mouse fail?
BOOL CDlgMediaPlay :: PreTranslateMessage (MSG * pMsg) {if (WM_RBUTTONDOWN == pMsg-> message) {AfxMessageBox ( "123"); return TRUE;} else return CDialog :: PreTranslateMessage (pMsg);} procedure can be achieved above the point I Right click on "123" dialog but I am now right-click, as long as I return, it is to remove AFXMessageBox ("123") but remove the right button. How can I shield it?????
Do you want WM_RBUTTONUP?
Try Return False;
Bool ctest6dlg :: pretranslateMessage (MSG * PMSG) {if (wm_rbuttondown == pmsg-> message) {// afxMessageBox ("123"); return true;}
Return CDIALOG :: PretranslateMessage (PMSG);
Void ctest6dlg :: ONRBUTTONDOWN (UINT NFLAGS, CPOINT) {AFXMessageBox ("123"); cdialog :: OnRButtondown (nflags, point);}
This will not pop up 123.
IF (WM_RBUTTONDOWN == PMSG-> Message) Return True; Else IF (WM_RBUTTONUP == PMSG-> Message) Return True;
Both are shielded