Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to put a vertical text scrolling on the form (a movie cast)
Using the GradientFill function
..msdn    Add comment     W32 Constants      Translate this page
The GradientFill function fills rectangle and triangle structures.
Code examples:
How to put a vertical text scrolling on the form (a movie cast)
Using the GradientFill function
BOOL GradientFill(
  HDC hdc,                   // handle to DC
  PTRIVERTEX pVertex,        // array of vertices
  ULONG dwNumVertex,         // number of vertices
  PVOID pMesh,               // array of gradients
  ULONG dwNumMesh,           // size of gradient array
  ULONG dwMode               // gradient fill mode
FoxPro declaration:
DECLARE INTEGER GradientFill IN Msimg32;
    INTEGER  hdc,;
    STRING @ pVertex,;
    LONG     dwNumVertex,;
    STRING @ pMesh,;
    LONG     dwNumMesh,;
    LONG     dwMode
[in] Handle to the destination device context.

[in] Pointer to an array of TRIVERTEX structures that each define a triangle vertex.

[in] The number of vertices in pVertex.

[in] Array of GRADIENT_TRIANGLE structures in triangle mode, or an array of GRADIENT_RECT structures in rectangle mode.

[in] The number of elements (triangles or rectangles) in pMesh.

[in] Specifies gradient fill mode. This parameter can be one of the following values.
Return value:
If the function succeeds, the return value is TRUE.
My comment:
To add smooth shading to a rectangle, call GradientFill with the upper-left and lower-right coordinates of the rectangle. There are two shading modes used when drawing a rectangle. In horizontal mode, the rectangle is shaded from left-to-right. In vertical mode, the rectangle is shaded from top-to-bottom.
Word Index links for the GradientFill :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2002-12-23 13:27:18
Modified: 2002-12-23 13:29:42
Visited in last 7 days: 51
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 (
17 sec.Function: 'GetClientRect'
33 sec.Function: 'GdipDeleteFontFamily'
51 sec.Function: 'CreateService'
1.13 min.Function: 'DestroyIcon'
1.47 min.Function: 'RegQueryInfoKey'
1.77 min.Function: 'GetLogicalDriveStrings'
2.08 min.Function: 'FtpDeleteFile'
2.38 min.
Function group: 'Desktop Window Manager (DWM)'
2.7 min.Function: 'ReplaceFile'
3.02 min.Function: 'CeOpenDatabase'
Advertise here!