Handling EM_SETSEL message

Discussion in 'MFC' started by Still_Using_MFC, Jan 16, 2009.

  1. Still_Using_MFC

    Still_Using_MFC New Member

    Joined:
    Jan 16, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Our application uses C++/MFC. We have normal edit boxes and a type of edit box that is filled with spaces by default when it is empty. The problem is that it is possible to make a selection with the mouse of an empty edit box, which looks a bit silly.

    How can I trap the EM_SETSEL message? Once its trapped I can check if the edit box has valid content and can be selected.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice