Share via


CLASS Statement (Windows CE 5.0)

Send Feedback

This resource-definition statement sets the class of the dialog box.

CLASSclass

Parameters

  • class
    Specifies a 16-bit unsigned 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 the message sent to it, the window procedure 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.

Remarks

The CLASS statement should only be used in special cases, because 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, there could be undesirable results.

Do not use the redefined control class names with this statement.

Example

The following code example shows how to use the CLASS statement.

CLASS "myclass" 

See Also

DefDlgProc | DIALOG Resource | WNDCLASS

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.