-
August 23rd, 1999, 03:30 AM
#1
SetClientRect ???
Hi,
GetClient rect gives the rectangle of the client rect area, is there a way to set it ?
I would like to reserve some space for one control in that space, I would like to use something like "SetWindowOrg", but the problem is that I create other controls outside of the OnDraw and this controls are inherited from CWnd and has its own painting methods...
Is there a way to do this ?
Thanks, Bye !
Braulio
-
August 23rd, 1999, 01:02 PM
#2
Re: SetClientRect ???
Look at MoveWindow() and SetWindowPos().
Rail
------------
Recording Engineer/Software Developer
Rail Jon Rogut Software
http://home.earthlink.net/~railro/
railro@earthlink.net
-
July 12th, 2009, 09:21 AM
#3
Re: SetClientRect ???
Process WM_NCCALCSIZE message. LPARAM is a long pointer to the client rectangle (TRECT).
By adjusting the rectangle you can effectively change the client area of the window.
-
July 12th, 2009, 09:43 AM
#4
Re: SetClientRect ???
See AdjustWindowRectEx function. It allows to calculate the whole window size based on desired client size. Then use MoveWindow.
-
July 12th, 2009, 09:53 AM
#5
Re: SetClientRect ???
...also you can use the MFC function CWnd::CalcWindowRect.
-
July 12th, 2009, 10:33 AM
#6
Re: SetClientRect ???
This thread is 10 years old.
-
July 12th, 2009, 01:25 PM
#7
Re: SetClientRect ???
Originally Posted by Skizmo
This thread is 10 years old.
Huh?.. Oh, sorry!
-
July 13th, 2009, 05:06 AM
#8
Re: SetClientRect ???
Originally Posted by skizmo
this thread is 10 years old.
OMG!
I hope now Braulio can continue his work.
Last edited by Alex F; July 13th, 2009 at 05:11 AM.
-
November 10th, 2022, 06:01 AM
#9
Re: SetClientRect ???
Originally Posted by Alex F
OMG!
I hope now Braulio can continue his work.
13 years later, and still the thread comes up, and the topic is relevant...
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
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
|