Re: Floating Child Windows

new topic     » goto parent     » topic index » view thread      » older message » newer message

> > > Applications like Paint Shop Pro and PhotoShop have floating toolbars
> > > that don't lose focus when the main window is selected (their titlebars
> > > don't go dim). How is that behavior achieved? Are these special toolbar
> > > windows? child or toplevel windows with special properties?
> > 
> > Their cheating.  Its not a real title bar.  It is basically a blank child
> > window with a title bar painted on it.  They toggle the dim look or
> > re-enable
> > depending on the focus of the parent window.
> 
> Those unscrupulous buckets of scum! Oh well. Thanks, Don! Is that how
> they get those tiny titlebars with the tiny close buttons with the
> itty-bitty 'x'?
> 
> Actually, I just looked at the Win32Lib's EX18.EXW demo... it uses
> the WS_EX_TOOLWINDOW parameter! hmmmmm. a clue even I can consider!!! :D

Yeah, usually they custom draw those things.  Like you found though the
itty-bitty 'x' buttons (WS_EX_TOOLWINDOW) are true tool windows.  I really
havent had much chance to play around with them as I dont use em much at
all in any of my personal code.


Don Phillips - aka Graebel
     National Instruments
     mailto: eunexus @ yahoo.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu