Using Win32 functions in Visual FoxPro Image Gallery
Region
..msdn
CombineRgn
CreateEllipticRgn
CreateRectRgn
CreateRoundRectRgn
FrameRgn
GetRegionData
GetRgnBox
Code examples:
Finding parameters for the region specified
GetRegionData
..msdn    Add comment     W32 Constants      Translate this page
Fills the specified buffer with data describing a region. This data includes the dimensions of the rectangles that make up the region.
Code examples:
Finding parameters for the region specified
Declaration:
DWORD GetRegionData(
  HRGN hRgn,            // handle to region
  DWORD dwCount,        // size of region data buffer
  LPRGNDATA lpRgnData   // region data buffer
);
FoxPro declaration:
DECLARE INTEGER GetRegionData IN gdi32;
    INTEGER hRgn,;
    INTEGER dwCount,;
    STRING @ lpRgnData
Parameters:
hRgn
[in] Handle to the region.

dwCount
[in] Specifies the size, in bytes, of the lpRgnData buffer.

lpRgnData
[out] Pointer to a RGNDATA structure that receives the information.
Return value:
If the function succeeds and dwCount specifies an adequate number of bytes, the return value is always dwCount.
My comment:
A quite usefull function if you need to know geometrical parameters for a region defined by a handle.
Word Index links for the GetRegionData :
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:25
Visited in last 7 days: 39
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.221.73.186)
16 sec.Function: 'CreateWaitableTimer'
29 sec.
Function group: 'Window'
47 sec.Function: 'mmioRead'
1.03 min.Function: 'mixerGetControlDetails'
1.32 min.Function: 'PathFindFileName'
1.6 min.Function: 'SQLManageDataSources'
1.85 min.Function: 'GetKeyboardState'
2.1 min.Function: 'OpenDesktop'
2.37 min.Function: 'WritePrivateProfileSection'
2.62 min.Function: 'CreateFont'
Google
Advertise here!