Using Win32 functions in Visual FoxPro Image Gallery
Window
..msdn
CloseWindow
CreateWindow
CreateWindowEx
DestroyWindow
EndTask
FindWindow
FindWindowEx
GetAncestor
GetClientRect
GetDesktopWindow
GetForegroundWindow
GetGUIThreadInfo
GetParent
GetShellWindow
GetWindow
GetWindowInfo
GetWindowPlacement
GetWindowRect
GetWindowText
GetWindowTextLength
GetWindowThreadProcessId
InternalGetWindowText
IsChild
IsIconic
IsWindow
IsWindowVisible
IsZoomed
MoveWindow
RealGetWindowClass
SetForegroundWindow
SetLayeredWindowAttributes
SetParent
SetWindowPos
SetWindowText
ShowWindow
SwitchToThisWindow
Code examples:
Displaying dimmed window behind VFP top-level form
Obtaining some properties for the Windows desktop using the GetWindowPlacement function
GetWindowPlacement
..msdn    Add comment     W32 Constants      Translate this page
The GetWindowPlacement function retrieves the show state and the restored, minimized, and maximized positions of the specified window.
Code examples:
Displaying dimmed window behind VFP top-level form
Obtaining some properties for the Windows desktop using the GetWindowPlacement function
Declaration:
BOOL GetWindowPlacement(
  HWND hWnd,                // handle to window
  WINDOWPLACEMENT *lpwndpl  // position data
);
FoxPro declaration:
DECLARE INTEGER GetWindowPlacement IN user32;
    INTEGER   hWnd,;
    STRING  @ lpwndpl
Parameters:
hWnd
[in] Handle to the window.

lpwndpl
[out] Pointer to the WINDOWPLACEMENT structure that receives the show state and position information.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
hParent = GetDesktopWindow()

cBuffer = PADR(CHR(WINDOWPLACEMENT_SIZE),;
    WINDOWPLACEMENT_SIZE, CHR(0))

= GetWindowPlacement(hParent, @cBuffer)

nLeft = buf2dword(SUBSTR(cBuffer, 29, 4))
nTop = buf2dword(SUBSTR(cBuffer, 33, 4))

nWidth = buf2dword(SUBSTR(cBuffer, 37, 4)) - m.nLeft
nHeight = buf2dword(SUBSTR(cBuffer, 41, 4)) - m.nTop
My comment:
Before calling this function set the length member of WINDOWPLACEMENT to sizeof(WINDOWPLACEMENT).
Word Index links for the GetWindowPlacement :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-01-25 19:44:39
Modified: 2011-09-16 18:45:33
Visited in last 7 days: 28
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.141.145)
3 sec.Function: 'CloseWindow'
Function group: 'Window'
7 sec.Example: 'Changing file attributes'
15 sec.Function: 'midiOutGetNumDevs'
Function group: 'Windows Multimedia'
33 sec.Function: 'WSAStartup'
19.65 hrs.Function: 'CryptGetHashParam'
Function group: 'Cryptography Reference'
 Function: 'inet_ntoa'
Function group: 'Windows Sockets 2 (Winsock)'
 Function: 'CryptDestroyKey'
Function group: 'Cryptography Reference'
 
Function group: 'GDI+ StringFormat'
 Example: 'How to prevent users from accessing the Windows Desktop and from switching to other applications'
 Function: 'NetShareEnum'
Google
Advertise here!