CLASS

CLASS class

The CLASS statement defines the class of the dialog box. If no statement is given, the Windows standard dialog class will be used as the default.

Parameters

class

Specifies an integer or a string, enclosed in double quotation marks, that identifies the class of the dialog box. If the window procedure for the class does not process a message sent to it, it must call the DefDlgProc function to ensure that all messages are handled properly for the dialog box. A private class can use DefDlgProc as the default window procedure. The class must be registered with the cbWndExtra member of the WNDCLASS structure set to DLGWINDOWEXTRA.

Comments

The CLASS statement should only be used with special cases, since it overrides the normal processing of a dialog box. The CLASS statement converts a dialog box to a window of the specified class; depending on the class, this could give undesirable results. Do not use the predefined control-class names with this statement.

Examples

The following example demonstrates the usage of the CLASS statement:

CLASS "myclass"

See Also

DefDlgProc