cwbNL_CalcDialogGrowthXY

Purpose

Routine to calculate the growth factor of a dialog box. All of the controls within the dialog box will looked at to determine how much the dialog-box size needs to be adjusted.

Syntax

 
unsigned int CWB_ENTRY cwbNL_CalcDialogGrowthXY(
                      HWND windowHandle,
                      float* growthFactorX,
				          	  float* growthFactorY);

Parameters

HWND windowHandle - input
Window handle of the dialog box for which to calculate the growth factor.
float* growthFactorX - output
+/- growth to the width needed to contain the string for all of the controls in the dialog box.
float* growthFactorY - output
+/- growth to the height needed to contain the string for all of the controls in the dialog box.

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.