Purpose
Routine to grow an individual control within
a dialog box.
Syntax
unsigned int CWB_ENTRY cwbNL_GrowControlXY(
HWND windowHandle,
HWND parentWindowHandle,
float growthFactorX,
float growthFactorY,
cwb_Boolean growAllControls);
Parameters
- HWND windowHandle - input
- Window handle of the control to be resized.
- HWND parentWindowHandle - input
- Window handle of the dialog box that contains the controls.
- float growthFactorX - input
- Multiplication factor for growing the width of the control. 1.00 = Stay
same size. 1.50 = 1 1/2 times original size.
- float growthFactorY - input
- Multiplication factor for growing the height of the control. 1.00 = Stay
same size. 1.50 = 1 1/2 times original size.
- cwb_Boolean growAllControls - input
- CWB_TRUE = All controls will be resized by the growthFactor. CWB_FALSE
= Only controls with text will be resized.
Return Codes
The following list shows common return
values.
- CWB_OK
- Successful Completion
Usage
Care should be used to not pass
in a growth factor that will cause a control to not fit on the physical display.