CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2001
    Posts
    22

    PreTranslateMessage problem

    When I use the PreranslateMessage to trap the EM_SETSEL message of a CEdit control in a dialog it only seems to reveal some of the WM_ messages.

    Why is this.


  2. #2
    Join Date
    Mar 2001
    Location
    Belgrade, Serbia
    Posts
    629

    Re: PreTranslateMessage problem

    Try adding virtual function OnCommand(wparam,lparam) to your dialog class, and there capture
    EM_SETSEL. The high-order word of wParam specifies the notification message if the message is from a control.


    good luck


  3. #3
    Join Date
    Jul 2001
    Posts
    22

    Re: PreTranslateMessage problem

    Thank you for your advice.

    I try this right now.


  4. #4
    Join Date
    Jul 2001
    Posts
    22

    Re: PreTranslateMessage problem

    I have implemented he OnCommand in my code but I can still not trap the EM_SETSET notification.

    I can trap EN_CHANGE.

    Why is this.



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