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
    7

    Getting "real" client-area of a FrameWnd

    Hi!

    I'm trying to get the size of the "real" client-area of the Framewindow of my MDI-application. That means the rectangle excluding all toolbars, statusbars and the menu.

    I would be very pleased if somebody could help me

    Regards

    C. Sonntag


  2. #2
    Join Date
    May 1999
    Posts
    10

    Re: Getting "real" client-area of a FrameWnd

    The best way to do it is to use
    CWnd::GetClientRect( LPRECT lpRect )function, or the same API function
    BOOL GetClientRect( HWND hWnd,LPRECT lpRect );




  3. #3
    Join Date
    May 1999
    Posts
    21

    Use RepositionBars()

    Try this:

    CRect rc;
    pMainFrame->RepositionBars(0, 0xFFFF, AFX_IDW_PANE_FIRST, reposQuery, &rc, NULL, TRUE);

    The only restriction is to take care if calling from inside controlbar layout.


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