CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    3

    Resizable CControlBar

    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!


  2. #2
    Join Date
    Jun 1999
    Posts
    3

    Re: Resizable CControlBar

    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.


  3. #3
    Join Date
    May 1999
    Posts
    3

    Re: Resizable CControlBar

    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!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured