Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.1 KB

GetSysColorBrush.md

File metadata and controls

46 lines (30 loc) · 1.1 KB

Home

Function name : GetSysColorBrush

Group: Brush - Library: user32


Retrieves a handle identifying a logical brush that corresponds to the specified color index.


Code examples:

Using FrameRgn for displaying system colors

Declaration:

HBRUSH GetSysColorBrush(
  int nIndex  // system color index
);  

FoxPro declaration:

DECLARE INTEGER GetSysColorBrush IN user32 INTEGER nIndex  

Parameters:

nIndex [in] Specifies a color index. This value corresponds to the color used to paint one of the window elements.


Return value:

The return value identifies a logical brush if the nIndex parameter is supported by the current platform. Otherwise, it returns NULL.


Comments:

System color brushes are owned by the system and must not be destroyed. That means you should not apply DeleteObject to brushes returned by this function.