Hello,
I am building MFC application where there is CDialog with child control derived from CStatic on it.
I want to receive mouse events for CStatic control so I set "Notify"
for it to true. Now I am able to receive message events through message map directly in MyStatic
:
class CMyStatic : public CStatic
{
afx_msg void OnLButtonDown(UINT nFlags, CPoint point); // Gets invoked
DECLARE_MESSAGE_MAP()
}
The problem is that from now the parent CDialog is not receiving mouse events when mouse is over MyStatic
child. I can send them from MyStatic
manually but is there any way to let them go through automatically? And still be able to receive them also on MyStatic
using message maps?
Thanks.