Right Mouse in Dialog?
Posted on 1997-03-05
I am trying to detect a right mouse button click in an edit control within a dialog. I have coded:
-- in dialog class definition --
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
-- in dialog class code --
void CSect2::OnRButtonDown(UINT nFlags, CPoint point)
pCurWnd = WindowFromPoint(point);
if (pCurWnd == GetDlgItem(IDC_ITEM))
In debug mode, I get a break if the mouse click is in the dialog window outside of the edit control, but NO break if mouse click is in edit control. How do I detect mouse click in edit control ?
Any help is appreciated. Thanks