Vertical size/height of control bar in MDI app?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

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

Hybrid View

  1. #1
    Join Date
    Jul 2001
    Posts
    293

    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
    Posts
    12,068

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

    I would think GetWindowRect should do it.

  3. #3
    Join Date
    Jul 2001
    Posts
    293

    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
    Posts
    12,068

    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
    293

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center