The information in this article applies to:
SYMPTOMSWhen an application creates a new button class, the new buttons do not receive BM_SETSTYLE messages under Windows 95. CAUSE
In previous versions of Windows, the new button had only to return
DLGC_BUTTON in response to the WM_GETDLGCODE message. This was all that was
required to identify the window as a "button."
RESOLUTIONTo tell the system to treat the window as a "button," the window must call one of the following APIs at least once: IsDlgButtonCheckedThe preferable method for doing this is to call IsDlgButtonChecked during the WM_CREATE message. Once this is done, the window will receive all standard button messages. STATUSThis behavior is by design. Additional query words:
Keywords : kbButton kbCtrl kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS95 kbWndw kbWndwClass |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |