Using Win32 functions in Visual FoxPro Image Gallery
Painting and Drawing
..msdn
DrawAnimatedRects
DrawCaption
DrawEdge
DrawFrameControl
GdiFlush
GdiGetBatchLimit
GdiSetBatchLimit
GetBkMode
GetBoundsRect
GetWindowDC
GetWindowRgnBox
LockWindowUpdate
PaintDesktop
SetBkColor
SetBkMode
SetWindowRgn
WindowFromDC
Code examples:
An alternative way of setting Form.Closable to False
Creating a clipping region from the path selected into the device context of a form
Creating irregularly shaped FoxPro form using transparency color key
How to create transparent areas inside a form -- punching holes in the form
How to draw custom Window Caption on FoxPro form
How to make a VFP form fading out when released (GDI version)
How to make a VFP form fading out when released (GDI+ version)
Placing On-screen Alert on top of all windows
Round FoxPro form
Setting the Window Region for a form
SetWindowRgn
..msdn    Add comment     W32 Constants      Translate this page
Sets the window region of a window. The window region determines the area within the window where the system permits drawing. The system does not display any portion of a window that lies outside of the window region
Code examples:
How to make a VFP form fading out when released (GDI version)
Placing On-screen Alert on top of all windows
Creating irregularly shaped FoxPro form using transparency color key
How to make a VFP form fading out when released (GDI+ version)
Creating a clipping region from the path selected into the device context of a form
Round FoxPro form
How to draw custom Window Caption on FoxPro form
How to create transparent areas inside a form -- punching holes in the form
An alternative way of setting Form.Closable to False
Setting the Window Region for a form
Declaration:
int SetWindowRgn(
  HWND hWnd,     // handle to window
  HRGN hRgn,     // handle to region
  BOOL bRedraw   // window redraw option
);
FoxPro declaration:
DECLARE SetWindowRgn IN user32;
    INTEGER hWnd,;
    INTEGER hRgn,;
    SHORT   bRedraw
Parameters:
hWnd
[in] Handle to the window whose window region is to be set.

hRgn
[in] Handle to a region. The function sets the window region of the window to this region.
If hRgn is NULL, the function sets the window region to NULL.

bRedraw
[in] Specifies whether the system redraws the window after setting the window region. If bRedraw is TRUE, the system does so; otherwise, it does not. Typically, you set bRedraw to TRUE if the window is visible.

Return value:
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.
My comment:
After a successful call to SetWindowRgn, the system owns the region specified by the region handle hRgn. The system does not make a copy of the region. Thus, you should not make any further function calls with this region handle. In particular, do not delete this region handle. The system deletes the region handle when it no longer needed.

To obtain the window region of a window, call the GetWindowRgn function.
Word Index links for the SetWindowRgn :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-26 12:00:00
Modified: 2001-11-26 16:03:24
Visited in last 7 days: 62
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.158.212.93)
17 sec.Function: 'getprotobyname'
32 sec.Function: 'SetFilePointer'
Function group: 'File Management'
49 sec.Function: 'MAPILogoff'
1.05 min.Function: 'GetWindowDC'
1.33 min.Function: 'GetBestInterface'
1.57 min.Function: 'CloseEnhMetaFile'
1.83 min.Function: 'CryptEnumProviders'
2.08 min.Function: 'GdipReleaseDC'
2.37 min.Function: 'GetRawInputDeviceList'
2.67 min.Function: 'CeGetSystemInfo'
Google
Advertise here!