CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2010
    Location
    Russia
    Posts
    69

    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?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    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

  3. #3
    Join Date
    Oct 2010
    Location
    Russia
    Posts
    69

    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.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    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
  •  





Click Here to Expand Forum to Full Width

Featured