Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using GetNearestColor
    Add comment     W32 Constants      Translate this page
The GetNearestColor function returns a color value identifying a color from the system palette that will be displayed when the specified color value is used
Code examples:
Using GetNearestColor
COLORREF GetNearestColor(
    HDC  hdc,    // handle of device context  
    COLORREF  crColor     // color to be matched 
FoxPro declaration:
DECLARE INTEGER GetNearestColor IN "gdi32";
    INTEGER hdc,;
    INTEGER crColor
Identifies the device context.

Specifies a color value that identifies a requested color
Return value:
If the function succeeds, the return value identifies a color from the system palette that corresponds to the given color value
Word Index links for the GetNearestColor :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2001-07-15 12:00:00
Modified: 2001-11-26 16:02:26
Visited in last 7 days: 61
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 (
3 sec.Function: 'GdiplusShutdown'
5 sec.Function: 'SQLSetEnvAttr'
6 sec.Function: 'CeGlobalMemoryStatus'
8 sec.Function: 'CeCopyFile'
11 sec.Function: 'DrawFrameControl'
15 sec.
Function group: 'Shell Lightweight Utility APIs -- string functions'
19 sec.Function: 'ToAscii'
21 sec.Function: 'GetFileSizeEx'
25 sec.Function: 'AVIStreamReadFormat'
28 sec.
Function group: 'Resource'
Advertise here!