EN_SELCHANGE Notification handling
-
hello: i am using following code in message map ON_NOTIFY(EN_SELCHANGE, IDC_RICHEDIT22, MyMethod) i want to capure the event as soon as the user selects the text or changes the selection in the CRichEditCtrl, but the message handler MyMethod is not called at all.. any suggestions for eliminating the possible cause... Regards Muhammad Ahmed ahmed
-
hello: i am using following code in message map ON_NOTIFY(EN_SELCHANGE, IDC_RICHEDIT22, MyMethod) i want to capure the event as soon as the user selects the text or changes the selection in the CRichEditCtrl, but the message handler MyMethod is not called at all.. any suggestions for eliminating the possible cause... Regards Muhammad Ahmed ahmed
Put the following in the dialog's
OnInitDialog()
method:m_edit.SetEventMask(m_edit.GetEventMask() | ENM_CHANGE);
A rich person is not the one who has the most, but the one that needs the least.
-
Put the following in the dialog's
OnInitDialog()
method:m_edit.SetEventMask(m_edit.GetEventMask() | ENM_CHANGE);
A rich person is not the one who has the most, but the one that needs the least.
thanks alot for solving the problem i had to change yr code a little like this m_Editor.SetEventMask(m_Editor.GetEventMask()|ENM_SELCHANGE); ahmed