Win32: edit control selection in dialog-based app
-
20-09-2019 - |
Question
I have a dialog-based app with an edit-control in it. When I minimize / restore the app, everything's ok. But when I hide all the windows with holding down that Windows-logo-key and pressing "D" and then I restore the app, the edit-control selects everything inside it.
How to make it not to select the text on restore?
Solution
Try to look at WM_GETDLGCODE and DLGC_HASSETSEL in MSDN.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow