views:

80

answers:

1

So basically, I have a Tab Control (WC_TABCONTROL) and I want to place all of the controls that go with a single tab page on a single window (control, if you will, or panel). I want to create something like the panel in wxWidgets, so that when I call ShowWindow(panel, SW_HIDE), I can hide the panel and all controls inside it. I hope you understand. Thanks, Grant.

A: 

I think what you want is a borderless, captionless dialogbox. I've used that very thing with tab-controls. Show and hide them on the tab control click events.

Actually some tab-controls will use the caption of the dialogbox in their own caption. YMMV.

Here's an old-school example. It shows all the basics.

http://msdn.microsoft.com/en-us/library/bb760551%28VS.85%29.aspx

HTH

JustBoo
I'm developing a OOP wrapper, so I don't want to use .rc files.
Grant