Purpose
Internal routine to growth the dialog box
and its controls proportionally based off of a growth factor that is input.
Syntax
unsigned int CWB_ENTRY cwbNL_GrowDialogXY(
HWND windowHandle,
float growthFactorX,
float growthFactorY,
cwb_Boolean growAllControls);
Parameters
- HWND windowHandle - input
- Window handle of the window owning the controls.
- float growthFactorX - input
- Multiplication factor for growing the dialog box, ie. 1.00 = Stay same
size, 1.50 = 1 1/2 times original size.
- float growthFactorY - input
- Multiplication factor for growing the dialog box, ie. 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
It is assumed that the translated
text has been loaded into the controls prior to calling this function. The
dialog-box frame will not be allowed to grow larger than the desktop window
size.