1. Re: Win32LIb & Child Windows
- Posted by David Cuny <dcuny at LANSET.COM>
Nov 04, 1998
-
Last edited Nov 05, 1998
Warren Baker wrote:
>But as I understand it, under Windows absolutely everything is, in fact, a
>window. They are just windows of a different kind... So I figure there
is
>a way to indicate that this window is a kind called "dialog" and then
you're
>away! (Easy to say. . . )
You are correct; everything *is* a window. But dialogs seem to be handled
differently, and as far as I can figure (and I've quite often been wrong!),
their modality is something special.
I've got multiple windows running in Win32Lib now, as well as simulated
modal windows. I'll post the code Real Soon Now, once I update the
documentation and make sure I'm not adding new bugs.
My simulated modality has a small bug - hopefully one that someone can help
me figure out. When I get a WM_GETFOCUS event and there is a modal window, I
call SetFocus to focus on the modal window. The focus goes to the modal
window, but *both* windows are lit as if they have focus. The visual cue is
quite confusing. Other than that, it seems to work just fine.
I'll try to figure it out before posting it, but I'm running out of ideas.
-- David Cuny