|
-
July 3rd, 1999, 10:42 AM
#1
Help in coding
Hai friends,
How the size of the controls are increasing/decreasing with respect to the client area, when we
use maximize and minimize button. pl. send me any example code.. (or) please mail me what are
the event i have to take care.
Mail id : [email protected]
waiting for you suggestions
Bhaskar
-
July 3rd, 1999, 10:55 AM
#2
Re: Help in coding
in OnPaint() i.e.
CRect rect;
GetClientRect(&rect);
int x = (rect.Width());
int y = (rect.Height());
Roger L. McElfresh
-
July 3rd, 1999, 10:57 AM
#3
Re: Help in coding
P.S. This is only one method, there are other ways.
Roger L. McElfresh
-
July 3rd, 1999, 11:06 AM
#4
Re: Help in coding
Windows sends a WM_SIZE message when the user resizes a control. You can override this method, and use the new client rect to size your controls accordingly
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
|