'Collapsible' tool window
Everyone knows the tool window you get in the Visual Studio's resource editor, the one with all those controls...
Well, I'd like to know how to make such a window, and also make it 'collapsible' like the popup windows in Photoshop, which collapse to a bar and can be expanded again.
While looking thru the documentation of CreateWindowEx() I found such a style among the extended window styles - WS_EX_TOOLWINDOW. But how do I :
add a flat toolbar in such a window (will it be in the oncreateclient funciton as usual?),
make it collapsible as I said before,
make it DOCKABLE and dock it with the DESKTOP WINDOW,
and do I need to register a new window class for it ?
Re: 'Collapsible' tool window
Have a look at the CRollup class somewhere in Codeguru, cannot remember quite where. You basically have a normal window but with a 'minimise' button which rolls the window up to just it's title bar, clicking on it again shows the full window.
I have used this recently and can thoroughly recommend it's use.
Not too sure if this is what you want.
Regards,
Craig.
Re: 'Collapsible' tool window
Thanks, Craig!
I'll try it out...
But I can't seem to find it on CodeGuru. Tell me how big the file is. If it's not too big, u could mail it to me.
Hardeep.