SetFocus???
-
My program is a single document program with some dialog boxes for input. When the user finished the input, the "main" window loses its focus, therefore, I have to press Spacebar first in order to input something to the main window. How can I SetFocus back to the window. I tried several ways but don't work. Thanks
-
My program is a single document program with some dialog boxes for input. When the user finished the input, the "main" window loses its focus, therefore, I have to press Spacebar first in order to input something to the main window. How can I SetFocus back to the window. I tried several ways but don't work. Thanks
To set the focus to your main frame window:
AfxGetMainWnd()->SetFocus();
--Mike-- http://home.inreach.com/mdunn/ All your base are belong to ME~!