Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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