WM_SYSCOLORCHANGE Must Be Sent to Windows 95 Common ControlsLast reviewed: September 29, 1995Article ID: Q129595 |
The information in this article applies to:
SUMMARYYou must ensure that applications that use the new common controls introduced in Windows 95 and Windows NT version 3.51 forward the WM_SYSCOLORCHANGE message to the controls.
MORE INFORMATIONWindows 95 makes it very easy for the user to change the colors of common user interface objects, therefore it is critical that applications not rely on particular colors being constant. When the user changes the color settings, Windows 95 will send a WM_SYSCOLORCHANGE message to all top level windows. Because this message is sent only to top level windows, the common controls will not be notified of the color change unless the application forwards the WM_SYSCOLORCHANGE message to the control. An example of why this is important is the toolbar control. If the color settings are such that the "3D Objects" color is set to light gray, the toolbar will create its buttons to light gray. However if the WM_SYSCOLORCHANGE message is not forwarded to the toolbar and the 3D Object color is changed to blue, the toolbar buttons will remain light gray while all the other buttons in the system change to blue.
|
Additional reference words: 1.30 4.00 grey
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |