Udostępnij za pośrednictwem


AFX_GLOBAL_DATA::RegisterWindowClass

Registers the specified MFC window class.

CString RegisterWindowClass(
   LPCTSTR lpszClassNamePrefix
);

Parameters

  • [in] lpszClassNamePrefix
    The name of the window class to register.

Return Value

The qualified name of the registered class if this method succeeds; otherwise, a resource exception.

Remarks

The return value is a colon-delimited list of the lpszClassNamePrefix parameter string, and the hexadecimal text representations of the handles of the current application instance; the application cursor, which is the arrow cursor whose identifier is IDC_ARROW; and the background brush. For more information about registering MFC window classes, see AfxRegisterClass.

Requirements

Header: afxglobals.h

See Also

Concepts

MFC Hierarchy Chart

Reference

AFX_GLOBAL_DATA Structure

AfxRegisterClass

AfxThrowResourceException