Re: Getting AdjustWindowRect() to work correctly ???
- From: "Jeff Partch" <jeffp@xxxxxxxx>
- Date: Wed, 21 Mar 2007 14:49:35 -0500
"Peter Olcott" <NoSpam@xxxxxxxxxxxxx> wrote in message
news:OIfMh.24797$mJ1.6976@xxxxxxxxxxxxxxx
My current problem is that it fails to account for scrollbars, even when
scrollbars are explicitly specified.
RECT NewWindowSize;
if (!AdjustWindowRect(&NewWindowSize,
WS_OVERLAPPEDWINDOW |
WS_HSCROLL | WS_VSCROLL, TRUE))
AfxMessageBox("AdjustWindowRect() Did Not Work!");
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/adjustwindowrect.asp
"The AdjustWindowRect function does not take the WS_VSCROLL or WS_HSCROLL
styles into account. To account for the scroll bars, call the
GetSystemMetrics function with SM_CXVSCROLL or SM_CYHSCROLL"
--
Jeff Partch [VC++ MVP]
.
- Follow-Ups:
- Re: Getting AdjustWindowRect() to work correctly ???
- From: Peter Olcott
- Re: Getting AdjustWindowRect() to work correctly ???
- References:
- Getting AdjustWindowRect() to work correctly ???
- From: Peter Olcott
- Getting AdjustWindowRect() to work correctly ???
- Prev by Date: Re: Re-engineering VC++ 6.0 MFC code
- Next by Date: Re: VC++ 6.0 Compiler Issues
- Previous by thread: Re: Getting AdjustWindowRect() to work correctly ???
- Next by thread: Re: Getting AdjustWindowRect() to work correctly ???
- Index(es):
Relevant Pages
|