网站首页  词典首页

请输入您要查询的函数:

 

术语 internalgetwindowtext
释义 InternalGetWindowText
语法:
int InternalGetWindowText( HWND hWnd,
LPWSTR lpString,
int nMaxCount
);
InternalGetWindowText功能
这个功能类似于GetWindowText函数。但是,它获得的窗口中的文本直接从指定的窗口的句柄,然后始终提供一个Unicode字符串文字相关的窗口结构。这是该获得通过发送WM_GETTEXT消息窗口中的文本不同GetWindowText。如果指定的窗口是一个控制,控件的文本获得。
参数
hWnd
[in]的窗口句柄或控制包含文本。
lpString
[out]指向宽字符缓冲区接收文本。如果字符串为长或大于缓冲区的长,字符串被截断,以NULL字符结束。
nMaxCount
[in]指定的最大字符数复制到缓冲区,包括NULL字符。如果文本超过此限制,它被截断。
返回值
如果函数成功,返回值是长度,以字符,复制的字符串,不包括终止空字符。如果窗口没有标题栏或文本,如果标题栏为空,或者如果窗口或控制的句柄无效,则返回值是零。为了获得更多错误信息,调用GetLastError。
备注
虽然您可以通过使用LoadLibrary和GetProcAddress在Microsoft Windows版本相结合,在Windows XP之前这个函数,该函数不使用标准访问包含文件和库之间的联系。头文件包含在Windows XP服务包1(SP1)和Windows Server 2003的文件,这个功能,使其容易使用适当的包含文件和库之间的联系。但是,此功能已经废弃,而不是一般使用。我们建议您不要使用新的程序,因为这可能会更改或在Windows的后续版本中不可用。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
2000年最低经营systemsWindows
UnicodeImplemented为ANSI和Unicode版本。
参见
视窗概述,GetWindowText,GetWindowTextLength,函数SetWindowText,WM_GETTEXT的,发送一条消息
==英文原文==InternalGetWindowText Function
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. 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.
Syntax
int InternalGetWindowText( HWND hWnd,
LPWSTR lpString,
int 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. If the string is as long or longer than the buffer, the string is truncated and terminated with a NULL character.
nMaxCount
[in] Specifies the maximum number of characters to copy to the buffer, including the NULL character. 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, not including the terminating NULL character. If the window has no title bar or text, if the title bar is empty, or if the window or control handle is invalid, the return value is zero. To get extended error information, call GetLastError .
Remarks
Although you can access this function by using LoadLibrary and GetProcAddress combined in Microsoft Windows versions prior to Windows XP, the function is not accessible using the standard Include file and library linkage. The header files included in Windows XP Service Pack 1 (SP1) and Windows Server 2003 document this function and make it accessible using the appropriate Include file and library linkage. However, this function is deprecated and not intended for general use. It is recommended that you do not use it in new programs because it might be altered or unavailable in subsequent versions of Windows.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 2000
UnicodeImplemented as ANSI and Unicode versions.
See Also
Windows Overview , GetWindowText , GetWindowTextLength , SetWindowText , WM_GETTEXT , Sending a Message
==原始网址==http://msdn.microsoft.com/en-us/library/ms633523(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:18:43