-
September 10th, 2013, 11:45 AM
#1
WTL. CEdit derived class. EN_CHANGE
Parent window has
Code:
COMMAND_HANDLER_EX(0, EN_CHANGE, OnEdit)
It works when I am using CEdit
But it does not work when I am using CMyEdit.
Code:
class CMyEdit : public CWindowImpl<CMyEdit , CEdit>
What do I have to do?
-
September 10th, 2013, 04:37 PM
#2
Re: WTL. CEdit derived class. EN_CHANGE
Show some other parts of your code where CMyEdit instance is defined, initialized and so on...
Victor Nijegorodov
-
September 10th, 2013, 04:56 PM
#3
Re: WTL. CEdit derived class. EN_CHANGE
Code:
class CMyEdit : public CWindowImpl<CMyEdit, CEdit>
{
public:
BEGIN_MSG_MAP(CMyEdit)
END_MSG_MAP()
};
I think thees are the general parts of the code.
If I use CEdit parent window catches EN_CHANGE. If I use CMyEdit it doesn't.
-
September 11th, 2013, 01:15 AM
#4
Re: WTL. CEdit derived class. EN_CHANGE
Read about Reflecting Notifications here
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|