CRichEditCtrl doesn't get WM_LBUTTONUP
-
Hi, I have a subclass of CRichEditCtrl, and for some reason it does not receive the WM_LBUTTONUP message. I've verified this with Spy++, as well as the following code: void CCommandLineEdit::OnLButtonDown(UINT nFlags, CPoint point) { TRACE("OnLButtonDown()\n"); CRichEditCtrl::OnLButtonDown(nFlags, point); } void CCommandLineEdit::OnLButtonUp(UINT nFlags, CPoint point) { TRACE("OnLButtonUp()\n"); CRichEditCtrl::OnLButtonUp(nFlags, point); } Commenting out CRichEditCtrl::OnLButtonDown(...) does allow the OnLButtonUp function to be called, but this also prevents the user from moving the caret by clicking the mouse anywhere (as well as making any type of selection with the mouse). I do have ENM_MOUSEEVENTS specified in my SetEventMask() call. Also, the problem isn't unique to this individual control. Has anybody seen this problem before or know of a way around it? (Preferably other than setting a timer on lbuttondown and polling for the button to be released). Thanks for any help! Jeremy