Using Win32 functions in Visual FoxPro Image Gallery
Brush
..msdn
CreateSolidBrush
GetSysColorBrush
Code examples:
Using FrameRgn for displaying system colors
GetSysColorBrush
..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
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.
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  
FreeTranslation.com 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: 22
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.163.210.170)
14 sec.Function: 'RasPhonebookDlg'
28 sec.Function: 'GetAdaptersInfo'
44 sec.Function: 'CloseHandle'
1 min.Function: 'GetShellWindow'
1.23 min.Function: 'IcmpCloseHandle'
1.47 min.Function: 'GetSystemTimeAdjustment'
1.73 min.Function: 'InternetDial'
1.98 min.Function: 'GetCharABCWidths'
2.22 min.Function: 'midiOutReset'
Google
Advertise here!