Using Win32 functions in Visual FoxPro Image Gallery
Region
..msdn
CombineRgn
CreateEllipticRgn
CreateRectRgn
CreateRoundRectRgn
FrameRgn
GetRegionData
GetRgnBox
Code examples:
Setting the Window Region for a form
CreateRoundRectRgn
..msdn    Add comment     W32 Constants      Translate this page
Creates a rectangular region with rounded corners.
Code examples:
Setting the Window Region for a form
Declaration:
HRGN CreateRoundRectRgn(
  int nLeftRect,      // x-coordinate of upper-left corner
  int nTopRect,       // y-coordinate of upper-left corner
  int nRightRect,     // x-coordinate of lower-right corner
  int nBottomRect,    // y-coordinate of lower-right corner
  int nWidthEllipse,  // height of ellipse
  int nHeightEllipse  // width of ellipse
);
FoxPro declaration:
DECLARE INTEGER CreateRoundRectRgn IN gdi32;
    INTEGER nLeftRect,;
    INTEGER nTopRect,;
    INTEGER nRightRect,;
    INTEGER nBottomRect,;
    INTEGER nWidthEllipse,;
    INTEGER nHeightEllipse
Parameters:
nLeftRect
[in] Specifies the x-coordinate of the upper-left corner of the region in device units.

nTopRect
[in] Specifies the y-coordinate of the upper-left corner of the region in device units.

nRightRect
[in] Specifies the x-coordinate of the lower-right corner of the region in device units.

nBottomRect
[in] Specifies the y-coordinate of the lower-right corner of the region in device units.

nWidthEllipse
[in] Specifies the width of the ellipse used to create the rounded corners in device units.

nHeightEllipse
[in] Specifies the height of the ellipse used to create the rounded corners in device units.
Return value:
If the function succeeds, the return value is the handle to the region.
Usage:
LOCAL nX, nY, nWidth, nHeight
nX = SYSMETRIC(10)+2
nY = SYSMETRIC(4) + SYSMETRIC(9)
nWidth=300
nHeight=150

hRegion = CreateRoundRectRgn(nX, nY,;
    nWidth, nHeight, 50, 50)

IF hRegion <> 0
    SetWindowRgn(ThisForm.HWnd, hRegion, 1)
ENDIF

Word Index links for the CreateRoundRectRgn :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2009-01-13 13:06:58
Modified: 2009-01-13 13:10:32
Visited in last 7 days: 24
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.146.59.207)
2 sec.Function: 'GdipGetFamilyName'
4 sec.
Function group: 'URL Monikers'
5 sec.Function: 'GetCursorPos'
8 sec.Function: 'GetKeyNameText'
9 sec.
Function group: 'Menu'
11 sec.Function: 'FileTimeToSystemTime'
13 sec.Function: 'CombineRgn'
15 sec.Function: 'Beep'
17 sec.Function: 'GdipGetImageHeight'
20 sec.Function: 'BeginPath'
Google
Advertise here!