WTL. CEdit derived class. EN_CHANGE
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: WTL. CEdit derived class. EN_CHANGE

  1. #1
    Join Date
    Oct 2010
    Location
    Russia
    Posts
    67

    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 online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,266

    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
    67

    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 online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,266

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center