|
-
January 11th, 2003, 08:50 PM
#1
Who gets the keyboard focus?
How does windows decide who gets the keyboard focus when a window is destroyed? I assumed that it would be the window from which the destroyed window was created.
I create a modeless dialog box from one of three main windows. Within the dialog function, a second modeless dialog box is created. When I then destroy modeless dialog box 2, then box 1, I do not come back to the window from which the dialog boxes started, but a second of three 'primary' windows gets the keyboard focus. Is this a bug in my code or is there something funny about calling nested modeless dialog boxes? (By the way, multiple copies of the dialog boxes are prevented, though all other activities of the remaining windows are possible.)
Look for coding bug, correct? Very possible as I have a complicated message loop since I convert keypresses to mouse clicks for button boxes. Involves tweaking of both the message loop and callback functions.)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|