Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   Handling EM_SETSEL message (http://www.go4expert.com/forums/handling-emsetsel-message-t15845/)

Still_Using_MFC 16Jan2009 22:56

Handling EM_SETSEL message
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.

All times are GMT +5.5. The time now is 21:41.