Click to See Complete Forum and Search --> : Resizable CControlBar


Gautam N. Lad
May 14th, 1999, 11:12 AM
Hi,
I want to create a resizable control bar for my
MDI app, but the standard CDialogBar doesn't
support resizing while docked, or otherwise.

So I decided to create a custom CControlBar.
I know there are nice classes out there already
on CodeGuru, but I just wanted to create this
so that I can learn how to create a custom
control.

So, where do I start? I can't create a CControlBar
derived class from ClassWizard, so I manually
wrote on up, remembering to include the various
lines that ClassWizard looks for.

Just to get started, I tried to create a simple
dialalog derived from my class, but it shows
nothing. It compiles fine, and all, but nothing
happens. I used the Create(..) function that
is similar to the one by
Cristi Posea's (Resizable Docking Window 2).

Any suggetions?
Bye!

Chris Malmborg
June 2nd, 1999, 02:45 PM
This might not help out at all, and may sound silly to some, but if you're using the dialog editor to create the template for your dialog and you forgot to check the 'visible' option, you won't see anything. Most likely that's not your problem, but I've made that mistake a hundred times, so I thought I'd pass it along.

Gautam N. Lad
June 2nd, 1999, 03:54 PM
Well, I pretty much gave up on the Resizable
Controlbar, and am now using the CodeJockey
library. It's much easier, and I'd rather not
re-invent the wheel, especially if I'm gonna get frustrated while doing it.

Thanks anyways..
Bye!