Using Win32 functions in Visual FoxPro Image Gallery
Filled Shape
..msdn
FillRect
Polygon
Code examples:
How to make a VFP form fading out when released (GDI version)
How to put a horizontal text scrolling on the form (a news line, marquee)
How to put a vertical text scrolling on the form (a movie cast)
Subclassing CommandButton control to create BackColor property
Vertical Label control
FillRect
..msdn    Add comment     W32 Constants      Translate this page
The FillRect function fills a rectangle by using the specified brush. This function includes the left and top borders, but excludes the right and bottom borders of the rectangle.
Code examples:
How to put a horizontal text scrolling on the form (a news line, marquee)
How to put a vertical text scrolling on the form (a movie cast)
Vertical Label control
How to make a VFP form fading out when released (GDI version)
Subclassing CommandButton control to create BackColor property
Declaration:
int FillRect(
  HDC hDC,           // handle to DC
  CONST RECT *lprc,  // rectangle
  HBRUSH hbr         // handle to brush
);
FoxPro declaration:
DECLARE INTEGER FillRect IN user32;
    INTEGER   hDC,;
    STRING  @ rect,;
    INTEGER   hBrush

Parameters:
hDC
[in] Handle to the device context.

lprc
[in] Pointer to a RECT structure that contains the logical coordinates of the rectangle to be filled.

hbr
[in] Handle to the brush used to fill the rectangle.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
For a list of all the standard system colors, see GetSysColor.

When filling the specified rectangle, FillRect does not include the rectangle"s right and bottom sides. GDI fills a rectangle up to, but not including, the right column and bottom row, regardless of the current mapping mode.
Word Index links for the FillRect :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-12-22 13:58:21
Modified: 2002-12-22 14:00:06
Visited in last 7 days: 12
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.83.224.203)
2 sec.Function: 'InternetAttemptConnect'
6 sec.Function: 'SetFilePointerEx'
Function group: 'File Management'
Google
Advertise here!