CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2001
    Posts
    306

    Vertical size/height of control bar in MDI app?

    Hello,

    I hope, someone can help me:
    In a MDI-app with some toolbars and statusbar I created also a controlbar which can be docked to the left side.
    My problem now: how do I get the exact height of the controlbar?

    In CalcDynamicLayout I set the height for the docked state to the height of the mainframe. This value is too big, but it will work basically.

    But how can I get the exact height of the controlbar?

    Thx.
    Ralf

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Vertical size/height of control bar in MDI app?

    I would think GetWindowRect should do it.

  3. #3
    Join Date
    Jul 2001
    Posts
    306

    Re: Vertical size/height of control bar in MDI app?

    no, it do not.
    And GetClientRect do also not work.
    It returns the window size until the bottom of the screen. I do not notice a statusbar or toolbar that is placed there.

  4. #4
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Vertical size/height of control bar in MDI app?

    Quote Originally Posted by Ralf Schneider View Post
    no, it do not.
    And GetClientRect do also not work.
    It returns the window size until the bottom of the screen. I do not notice a statusbar or toolbar that is placed there.
    Not sure what you mean. I thought you wanted the size of the controlbar. How are you calling it?

  5. #5
    Join Date
    Jul 2001
    Posts
    306

    Re: Vertical size/height of control bar in MDI app?

    GetWindowRect(&rect); in the Controlbar-Class.
    But I do not get a rect of the visible part of the controlbar.
    I do get a bigger rect of a control thats bottom is at the bottom of the screen.

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