How To Use SS_GRAYRECT SS_BLACKRECT SS_WHITERECT in Windows 95

This article has been archived. It is offered "as is" and will no longer be updated.
Summary
The colors used in the gray, white, and black rectangle static controls have changed in Windows 95 and Windows 2000. In previous versions of Windows, these colors were based on the system colors for windows. In Windows 95 and Windows 2000, these colors are based on the colors for 3D objects.
More information
In Windows 95 and Windows 2000, 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, andblack 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.
Properties

Article ID: 125684 - Last Review: 01/10/2015 10:58:23 - Revision: 3.0

  • kbnosurvey kbarchive kbctrl kbhowto kbstaticctrl KB125684
Feedback