well, this still does not solve my problem, when i catch OnNcHitTest, i cannot even trigger the LBUTTONDOWN event.. anyway i learnt something out of your reply, thanx mate!
Isuru_Perera
Posts
-
WM_LBUTTONUP does not trigger, please help -
WM_LBUTTONUP does not trigger, please helpTThank u 4 ur quick responses.. i tried both of them but the problem still exists.. I commented SendMessage(WM_NCLBUTTONDOWN,HTCATION); and put some variable assigning code there and both LBUTTONDOWN and LBUTTONUP triggers.. when put back SendMessage(WM_NCLBUTTONDOWN,HTCATION);, LBUTTONUP does not trigger.. i dont know wat to do..
-
WM_LBUTTONUP does not trigger, please helpI have a simple code where a user moves a window and when the user releases the window, a message box is displayed. here is my code for that.
void CFldWnd::OnLButtonDown(UINT nFlags, CPoint point) { SendMessage(WM_NCLBUTTONDOWN, HTCAPTION); CWnd::OnLButtonDown(nFlags, point); } void CFldWnd::OnLButtonUp(UINT nFlags, CPoint point) { MessageBox("Button up"); CWnd::OnLButtonUp(nFlags, point); }
the window moving part works fine but when i release the left mouse button, messagebox is not displayed. but when i double click on the window, message box is displayed. please help!!!! thanx in advance!