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:
Scanning the hierarchy of child windows down from the main VFP window
Simple Window Viewer
InternalGetWindowText
..msdn    Add comment     W32 Constants      Translate this page
This function is similar to the GetWindowText function. However, it obtains the window text directly from the window structure associated with the specified window"s handle and then always provides the text as a unicode string.
Code examples:
Simple Window Viewer
Scanning the hierarchy of child windows down from the main VFP window
Declaration:
int InternalGetWindowText(
    HWND hWnd,
    LPWSTR lpString,
    int nMaxCount
);
FoxPro declaration:
DECLARE INTEGER InternalGetWindowText IN user32;
    INTEGER   hWnd,;
    STRING  @ lpString,;
    INTEGER   nMaxCount

Parameters:
hWnd
[in] Handle to the window or control containing the text.

lpString
[out] Pointer to the wide character buffer that receives the text.

nMaxCount
[in] Specifies the maximum number of characters to copy to the buffer, including the NULL character.
Return value:
If the function succeeds, the return value is the length, in characters, of the copied string, not including the terminating NULL character.
My comment:
MSDN: This is unlike GetWindowText which obtains the text by sending the window a WM_GETTEXT message. If the specified window is a control, the text of the control is obtained.
Word Index links for the InternalGetWindowText :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-01-18 11:36:45
Modified: 2003-01-18 11:39:12
Visited in last 7 days: 18
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.234.255.29)
14 sec.Function: 'GetTextAlign'
27 sec.Function: 'AdjustTokenPrivileges'
40 sec.Function: 'OpenInputDesktop'
52 sec.Function: 'Shell_NotifyIcon'
1.08 min.Function: 'GdipCreateMatrix2'
1.32 min.Function: 'RegDeleteValue'
1.57 min.Function: 'SHRegOpenUSKey'
1.78 min.Function: 'FtpSetCurrentDirectory'
2 min.Function: 'GdipSetWorldTransform'
2.22 min.Function: 'GetTextMetrics'
Google
Advertise here!