How to Use SS_GRAYRECT SS_BLACKRECT SS_WHITERECT in Windows 95

Last reviewed: September 29, 1995
Article ID: Q125684
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with:

        - Microsoft Windows 95 version 4.0
    

SUMMARY

The colors used in the gray, white, and black rectangle static controls has changed in Windows 95. In previous versions of Windows, these colors were based on the system colors for windows. In Windows 95, these colors are based on the colors for 3D objects.

MORE INFORMATION

In Windows 95, the definitions for white, gray, and black rectangle static controls are as follows:

  • SS_WHITERECT: Specifies a rectangle filled with the highlight color for three-dimensional display elements (for edges facing the light source). This is the same color retrieved by using GetSysColor() with COLOR_3DHILIGHT.
  • SS_GRAYRECT: Specifies a rectangle filled with the shadow color for three-dimensional display elements (for edges facing away from the light source). This is the same color retrieved by using GetSysColor() with COLOR_3DSHADOW.
  • SS_BLACKRECT: Specifies a rectangle filled with the Shadow color for three-dimensional display elements (for edges facing away from the light source). This is the same color retrieved by using GetSysColor() with COLOR_3DDKSHADOW. This is not the same color as COLOR_3DSHADOW. There are two shadow colors used on 3D objects.

In previous versions of Windows, the definitions for white, gray, and black rectangle static controls were as follows:
  • SS_WHITERECT: Specifies a rectangle filled with the color used to fill window backgrounds. This color is white in the default Windows color scheme. This is the same color retrieved by using GetSysColor() with COLOR_WINDOW.
  • SS_GRAYRECT: Specifies a rectangle filled with the color used to fill the screen background. This color is gray in the default Windows color scheme. This is the same color retrieved by using GetSysColor() with COLOR_BACKGROUND.
  • SS_BLACKRECT: Specifies a rectangle filled with the color used to draw window frames. This color is black in the default Windows color scheme. This is the same color retrieved by using GetSysColor() with COLOR_WINDOWFRAME.


Additional reference words: 4.00
KBCategory: kbui
KBSubcategory: UsrCtl


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 29, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.