smartphonede
06-24-2008, 08:31 AM
I have a main window, and various comboboxes and buttons created within in. (CreateWindow has been used for all mentioned)
When the main window loads, focus is completely missing. I can't select anything. I first tried to use SetFocus and passed the main window handle. No luck. I then tried to SetFocus to a single element. This worked. When the window loaded, one of the comboboxes had focus. However, I couldn't move to any other of elements on the screen.
I want to try avoid using a DialogBox here. With a window, how do I set/change focus between various elements (comboboxes and buttons)?
Thanks in advance!
When the main window loads, focus is completely missing. I can't select anything. I first tried to use SetFocus and passed the main window handle. No luck. I then tried to SetFocus to a single element. This worked. When the window loaded, one of the comboboxes had focus. However, I couldn't move to any other of elements on the screen.
I want to try avoid using a DialogBox here. With a window, how do I set/change focus between various elements (comboboxes and buttons)?
Thanks in advance!