Win32: edit control selection in dialog-based app

534 Views Asked by At

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?

1

There are 1 best solutions below

2
On BEST ANSWER

Try to look at WM_GETDLGCODE and DLGC_HASSETSEL in MSDN.