Generic Control Statements

Syntax

CONTROL controlText, id, className, style

Parameters

controlText

Specifies the window text for the control.

id

Specifies the control identifier.

className

Specifies the name of the class. This may be either a string enclosed in double quotation marks (“) or one of the following predefined system classes: BUTTON, STATIC, EDIT, LISTBOX, SCROLLBAR, or COMBOBOX.

style

Specifies the window styles. Explicit WS_*, BS_*, SS_*, ES_*, LBS_*, SBS_*, and CBS_* style values defined in Winuser.h can be used by adding an include to the .rc file, as follows:

#include "Winuser.h"