focus-button problem
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
prerequiste information: VC++ windows application (Dialog based) On dialog, List control is added. I have embedded edit control in List control. A Cancel button on dialog. Problem: When cursor (focus) is on edit control (that is in list control), if i click Cancel button, the event is not handled unless i click it again. I mean, i need to click Cancel button again to cancel the dialog. In code, When i click Cancel button, only (user defined) OnLostFocus() function of edit control is called.