CONTROL SET CLIENT statement

Purpose

Change the size of a control to a specific client area size.

Syntax

CONTROL SET CLIENT hDlg, id&, wide&, high&

Remarks

Client size may be smaller than total size, depending on the type of borders used. The client area is the part inside the borders of a control, which varies depending upon the style and exstyle at creation. In a control without borders, the client size and total size is the same. As an alternate example, a control with the %WS_BORDER style will typically have a client area a few pixels smaller than the total size.

hDlg

Handle of the dialog that owns the control.

id&

The unique control identifier, assigned to the control with the CONTROL ADD statement.

wide&, high&

Integer expressions, variables, or numeric literal values, specifying the desired size of the client area. Width and height are specified in pixels or dialog units, depending upon the system used when the parent dialog was created.

See also

Dynamic Dialog Tools, CONTROL GET CLIENT, CONTROL GET LOC, CONTROL GET SIZE, CONTROL SET LOC, CONTROL SET SIZE