cwbNL_SizeDialog
Use the cwbNL_SizeDialog command.
Purpose
This routine will control the sizing of the dialog box and its child controls. The expansion amount is based off of the length of the text extent and the length of each control. The growth of the dialog box and its controls will be proportional. By setting the growAllControls to FALSE, only controls with text will expand or contract. This allows the programmer the flexibility of non-translatable fields to remain the same size. This may be appropriate for dialogs that contain drop-down lists, combo-boxes, or spin buttons.
Syntax
unsigned int CWB_ENTRY cwbNL_SizeDialog(
HWND windowHandle,
cwb_Boolean growAllControls);
Parameters
- HWND windowHandle - input
- Window handle of the window owning the controls.
- 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
This routine assumes that the translated text has already been loaded into the dialog-box controls. If the text has not been loaded into the controls, use cwbNL_LoadDialog.