Using Win32 functions in Visual FoxPro Image Gallery
Window
..msdn
BringWindowToTop
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:
Accessing Adobe Reader 7.0 main menu from VFP application
Extended MessageBox Class
How to change the name and the size of the font in the MessageBox dialog
How to control Adobe Reader 9.0 (SDI mode) from VFP application
How to position the GETPRINTER() dialog
Listing child windows for the Windows desktop
Minimizing all running applications
Obtaining window class name for the main VFP window
Reading the structure of VFP main menu
Retrieveing information about the active window (even if it is not owned by the calling process)
Retrieving top-child window for the VFP form
Scanning a hierarchy of child windows down from the Windows Desktop
Scanning the hierarchy of child windows down from the main VFP window
Simple Window Viewer
Terminating all running applications from a VFP program
The window and its ancestors
Who is the first in viewing the Clipboard
Who owns the Windows Clipboard
GetWindowText
    Add comment     W32 Constants      Translate this page
The GetWindowText function copies the text of the specified window"s title bar (if it has one) into a buffer
Code examples:
How to control Adobe Reader 9.0 (SDI mode) from VFP application
Extended MessageBox Class
Reading the structure of VFP main menu
How to change the name and the size of the font in the MessageBox dialog
Terminating all running applications from a VFP program
Listing child windows for the Windows desktop
Simple Window Viewer
Accessing Adobe Reader 7.0 main menu from VFP application
Scanning the hierarchy of child windows down from the main VFP window
How to position the GETPRINTER() dialog
Declaration:
int GetWindowText(
    HWND  hWnd,    // handle of window or control with text
    LPTSTR  lpString,    // address of buffer for text
    int  nMaxCount     // maximum number of characters to copy
   );
FoxPro declaration:
DECLARE INTEGER GetWindowText IN user32;
    INTEGER hwnd,;
    STRING @lpString,;
    INTEGER cch
Parameters:
hWnd
Identifies the window or control containing the text.

lpString
Points to the buffer that will receive the text.

nMaxCount
Specifies the maximum number of characters to copy to the buffer. If the text exceeds this limit, it is truncated
Return value:
If the function succeeds, the return value is the length, in characters, of the copied string
Usage:
hWindow=_vfp.HWnd
nBufsize = 2048
cBuffer = REPLICATE(CHR(0), nBufsize)
nBufsize = GetWindowText(hWindow, @cBuffer, nBufsize)
? IIF(nBufsize=0, "", LEFT(cBuffer, nBufsize))
My comment:
Read this: The secret life of GetWindowText on The Old New Thing.
Word Index links for the GetWindowText :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-12 12:00:00
Modified: 2009-10-05 10:33:03
Visited in last 7 days: 112
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.198.54.142)
11 sec.Function: 'GdipScaleTextureTransform'
Function group: 'GDI+ Brush'
24 sec.
Function group: 'File Management'
36 sec.Function: 'CeRegDeleteValue'
Function group: 'Remote Application Programming (RAPI)'
1 min.Example: 'Using InternetSetFilePointer when resuming interrupted download from the Internet'
1.18 min.
Function group: 'GDI+ Brush'
1.38 min.Function: 'CreateHardLink'
Function group: 'File Management'
1.6 min.Function: 'FindNextPrinterChangeNotification'
1.78 min.Function: 'QueryDosDevice'
Function group: 'File Management'
2 min.Function: 'GetCurrentThread'
Function group: 'Process and Thread'
2.2 min.
Function group: 'String'
Google
Advertise here!