网站首页  词典首页

请输入您要查询的函数:

 

术语 getalttabinfo
释义 GetAltTabInfo
语法:
BOOL GetAltTabInfo( HWND hwnd,
int iItem,
PALTTABINFO pati,
LPTSTR pszItemText,
UINT cchItemText
);
GetAltTabInfo功能
该GetAltTabInfo函数检索指定窗口的状态信息,如果它是应用程序转换(ALT + TAB键)窗口。
参数
hwnd
[in]句柄的状态信息的检索窗口。该窗口必须是应用程序切换窗口。
iItem
[in]指定的应用程序图标指数切换窗口。如果pszItemText参数不是NULL,该项目的名称复制到pszItemText字符串。如果此参数为-1,该项目的名称不被复制。
巴蒂
[out]指向一个ALTTABINFO结构接收状态信息。请注意,您必须设置为sizeof ALTTABINFO.csSize在调用这个函数(ALTTABINFO)。
pszItemText
[out]指向一个字符串,它接收的项目名称。如果该参数为NULL,该项目的名称不被复制。
cchItemText
[in]指定的大小,在TCHARs,在pszItemText缓冲区。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
应用程序切换窗口,您可以切换到最近使用的应用程序窗口。要显示应用程序切换窗口,按ALT + TAB。要选择从列表中的应用,继续按住Alt下来,然后按TAB键在列表中移动。新增SHIFT以扭转该列表的方向。
在Windows 95/98/Me:GetAltTabInfoW是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低经营systemsWindows 98时,Windows NT 4.0 SP6的
UnicodeImplemented为ANSI和Unicode版本。
参见
视窗概述,ALTTABINFO
==英文原文==GetAltTabInfo Function
The GetAltTabInfo function retrieves status information for the specified window if it is the application-switching (ALT+TAB) window.
Syntax
BOOL GetAltTabInfo( HWND hwnd,
int iItem,
PALTTABINFO pati,
LPTSTR pszItemText,
UINT cchItemText
);
Parameters
hwnd
[in] Handle to the window for which status information will be retrieved. This window must be the application-switching window.
iItem
[in] Specifies the index of the icon in the application-switching window. If the pszItemText parameter is not NULL, the name of the item is copied to the pszItemText string. If this parameter is –1, the name of the item is not copied.
pati
[out] Pointer to an ALTTABINFO structure to receive the status information. Note that you must set ALTTABINFO.csSize to sizeof(ALTTABINFO) before calling this function.
pszItemText
[out] Pointer to a string that receives the name of the item. If this parameter is NULL, the name of the item is not copied.
cchItemText
[in] Specifies the size, in TCHARs, of the pszItemText buffer.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
The application-switching window enables you to switch to the most recently used application window. To display the application-switching window, press ALT+TAB. To select an application from the list, continue to hold ALT down and press TAB to move through the list. Add SHIFT to reverse direction through the list.
Windows 95/98/Me: GetAltTabInfoW is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 98, Windows NT 4.0 SP6
UnicodeImplemented as ANSI and Unicode versions.
See Also
Windows Overview , ALTTABINFO
==原始网址==http://msdn.microsoft.com/en-us/library/ms633501(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 11:22:39