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?

Was it helpful?

Solution

Try to look at WM_GETDLGCODE and DLGC_HASSETSEL in MSDN.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top