PRB: No ANSI Notifications from Control Created in OnCreateLast reviewed: July 31, 1997Article ID: Q148533 |
2.10 2.20 4.00 4.10
WINDOWS NT
kbprg kbprb
The information in this article applies to:
SYMPTOMSNo notification messages are received from a common control that is created in the OnCreate function (the WM_CREATE handler) of a CFormView or CDialog. Closer inspection reveals that notifications are being sent, but they are the UNICODE versions of the notifications.
CAUSEThe common controls send a WM_NOTIFYFORMAT message when they are first created to determine if they should send ANSI or UNICODE notifications to the parent window. The default processing of WM_NOTIFYFORMAT for a dialog box returns NFR_UNICODE until after the dialog box window has been created. At the point when the WM_CREATE message is sent, the dialog box still returns NFR_UNICODE in response to a WM_NOTIFYFORMAT message. A CFormView is really a dialog box, so this is a problem for the CFormView class as well as the CDialog class.
RESOLUTIONHere are two ways to work around this problem:
STATUSMicrosoft has confirmed this to be a bug in Microsoft Windows NT. It is not a bug in MFC. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional reference words: CAnimateCtrl CHeaderCtrl CHotKeyCtrl
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |