Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using FrameRgn for displaying system colors
..msdn    Add comment     W32 Constants      Translate this page
Retrieves a handle identifying a logical brush that corresponds to the specified color index.
Code examples:
Using FrameRgn for displaying system colors
HBRUSH GetSysColorBrush(
  int nIndex  // system color index
FoxPro declaration:
DECLARE INTEGER GetSysColorBrush IN user32 INTEGER 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.
My comment:
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.
Word Index links for the GetSysColorBrush :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2001-08-27 12:00:00
Modified: 2001-11-26 16:03:26
Visited in last 7 days: 52
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
9 sec.Function: 'WindowFromDC'
17 sec.Function: 'GdipSetPageScale'
27 sec.Function: 'SetFileTime'
36 sec.Function: 'NetScheduleJobAdd'
Advertise here!