At 13:36 2004-01-16, Jez White wrote:
Now, the scrolling part works fine - but is using a child window in this way the correct approach? For example, interacting with the child window (clicking on a button, or scrolling) loses focus (which you would expect for a normal window) but is not the correct behaviour in this case. Am I missing something fundamental?

I think it's like this.

All controls (e.g. Buttons) are Windows windows the same way a dialog box window is a window. Read that sentence again, I think it makes sense :)

The difference is the -style and -exstyle for the windows. If you can set the style of your new window to behave like it's an ordinary control, then it should also not lose focus, the same way the main window doesn't lose focuse just becuase a Button also has focus.

Something like that. Does that seem likely?


/J

-------- ------ ---- --- -- --  --  -    -     -      -         -
Johan Lindström   Sourcerer @ Boss Casinos   [EMAIL PROTECTED]

Latest bookmark: "Professor Lives Life As a Cyborg"
<http://story.news.yahoo.com/news?tmpl=story&u=/ap/20040110/ap_on_hi_te/internet_profile_cyborg_1>
dmoz (1 of 30): /Computers/Software/Fonts/ 96


Reply via email to