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!
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!