|
-
May 5th, 1999, 08:55 AM
#1
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
-
May 7th, 1999, 03:08 AM
#2
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 );
-
May 7th, 1999, 03:23 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|