Focus problem
-
I have an application that shows a splash screen for 5 seconds, the splash screen is deleted and a dialog box should be shown. The problem I had was that the dialog box would be behind everything else (the edit box inside the dialog would still have focus, which is correct). To solve this, in the OnInitDialog of the dialog I set the window position and size etc and set the first parameter to wndTopMost. This worked up to a point. The dialog is now on top and the cursor is flashing in the edit box where it should, BUT the box itself still doesn't have focus and you have to click on it before you can type in the edit box. Any ideas how to rectify this? Thanks in advance for any help, Nick
-
I have an application that shows a splash screen for 5 seconds, the splash screen is deleted and a dialog box should be shown. The problem I had was that the dialog box would be behind everything else (the edit box inside the dialog would still have focus, which is correct). To solve this, in the OnInitDialog of the dialog I set the window position and size etc and set the first parameter to wndTopMost. This worked up to a point. The dialog is now on top and the cursor is flashing in the edit box where it should, BUT the box itself still doesn't have focus and you have to click on it before you can type in the edit box. Any ideas how to rectify this? Thanks in advance for any help, Nick
This is probably a problem with splash screen which is disabling your dialog window. Check if splash calls EnableWindow. Tomasz Sowinski -- http://www.shooltz.com
-
This is probably a problem with splash screen which is disabling your dialog window. Check if splash calls EnableWindow. Tomasz Sowinski -- http://www.shooltz.com
I was actually using the splash class wrongly and putting a line of code in the wrong place (doh), thanks for the help though, Nick :)