0

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?

Lars Kanto
  • 685
  • 2
  • 10
  • 15

1 Answers1

0

Try to look at WM_GETDLGCODE and DLGC_HASSETSEL in MSDN.

VitalyVal
  • 1,320
  • 12
  • 13
  • I subclassed the edit control and cleared that DLGC_HASSETSEL bit. But I also read that it is somehow possible to do without subclassing? How to stop the "default container processing such as dialog management code"? – Lars Kanto Mar 17 '10 at 03:05
  • "I subclassed the edit control and cleared that DLGC_HASSETSEL bit." - Do all work as supposed? "But I also read that it is somehow possible to do without subclassing? How to stop the "default container processing such as dialog management code"?" - I do not know. You can try to watch messages for the edit control and dialog using Spy. – VitalyVal Mar 17 '10 at 08:24