DOC: AfxRegisterWndClass with WS_* Styles Causes ExceptionLast reviewed: July 2, 1997Article ID: Q132291 |
1.00 1.50 1.51 1.52 | 1.00 2.00 2.10 2.20
WINDOWS | WINDOWS NTkbprg kbdocerr kbdocfix The information in this article applies to:
SUMMARYThe documentation for AfxRegisterWndClass states that the nClassStyle parameter can be a combination of any window style or control style. If a window style (for example, WS_VISIBLE and WS_CHILD) is used in this parameter, then the AfxRegisterWndClass function call causes a resource exception to be thrown. Your application will probably fail, and give a message similar to this:
Unhandled Exception in myapp.exe (MFC30D.DLL): 0xE06D7363: Microsoft C++ Exception. MORE INFORMATIONOnly Window CLASS styles (not window styles) can be used in the nClassStyle parameter. These class styles are listed in the documentation for the WNDCLASS structure. Examples of window class styles include:
CS_HREDRAW CS_VREDRAW CS_DBLCLKSNOTE: This problem was fixed in Microsoft Visual C++, 32-bit Edition, version 4.0.
|
KBCategory: kbprg kbdocerr kbdocfix
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |