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:
GetWindowRgnBox
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the dimensions of the tightest bounding rectangle for the window region of a window.
Code examples:
Declaration:
int GetWindowRgnBox(
    HWND hWnd, // handle to window
    LPRECT lprc   // rectangle
);
FoxPro declaration:
DECLARE INTEGER GetWindowRgnBox IN user32;
    INTEGER hWindow,;
    STRING @lprc
Parameters:
hWnd
[in] Handle to the window.

lprc
[out] Pointer to a RECT structure that receives the rectangle dimensions, in device units relative to the upper-left corner of the window.
Return value:
The return value specifies the type of the region that the function obtains.
Usage:
LOCAL cBuffer
cBuffer = REPLICATE(CHR(0),16)
= GetWindowRgnBox(application.HWnd, @cBuffer)

* region returned
? "left:", buf2dword(SUBSTR(m.cBuffer,1,4))
? "top:", buf2dword(SUBSTR(m.cBuffer,5,4))
? "right:", buf2dword(SUBSTR(m.cBuffer,9,4))
? "bottom:", buf2dword(SUBSTR(m.cBuffer,13,4))
My comment:
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.
Word Index links for the GetWindowRgnBox :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-01-04 15:17:52
Modified: 2008-01-04 15:19:55
Visited in last 7 days: 12
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.166.203.76)
5 sec.
Function group: 'Clipboard'
10 sec.Function: 'MAPIFreeBuffer'
16 sec.Function: 'FindNextFile'
21 sec.Function: 'SearchPath'
27 sec.Function: 'SetSearchPathMode'
33 sec.Function: 'GetProcAddress'
39 sec.Function: 'PlaySound'
44 sec.Function: 'CeOpenDatabase'
50 sec.Function: 'CloseDesktop'
56 sec.Function: 'InitiateShutdown'
Google
Advertise here!