-
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
-
Re: Help in coding
in OnPaint() i.e.
CRect rect;
GetClientRect(&rect);
int x = (rect.Width());
int y = (rect.Height());
Roger L. McElfresh
-
Re: Help in coding
P.S. This is only one method, there are other ways.
Roger L. McElfresh
-
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