1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Handling EM_SETSEL message

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

  1. Still_Using_MFC

    Still_Using_MFC New Member

    Jan 16, 2009
    Likes Received:
    Trophy Points:
    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