Click to See Complete Forum and Search --> : Help in coding


July 3rd, 1999, 10:42 AM
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 : basi_g@hotmail.com

waiting for you suggestions
Bhaskar

herbieII
July 3rd, 1999, 10:55 AM
in OnPaint() i.e.
CRect rect;
GetClientRect(&rect);
int x = (rect.Width());
int y = (rect.Height());

Roger L. McElfresh

herbieII
July 3rd, 1999, 10:57 AM
P.S. This is only one method, there are other ways.

Roger L. McElfresh

July 3rd, 1999, 11:06 AM
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