I am trying to detect a right mouse button cllick 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 coding --
void CSect2::OnRButtonDown(UINT nFlags, CPoint point)
pCurWnd = WindowFromPoint(point);
if (pCurWnd == GetDlgItem(IDC_ITEM))
In debug mode, I get a break if mouse cllick is in dialog window outside of the edit control, but no break if mouse click is in edit control.
How do I detect a right mouse click in the edit control ?
Any help is appreciated. Thanks.