网站首页  词典首页

请输入您要查询的函数:

 

术语 getwindowplacement
释义 GetWindowPlacement
语法:
BOOL GetWindowPlacement( HWND hWnd,
WINDOWPLACEMENT *lpwndpl
);
GetWindowPlacement函数
该GetWindowPlacement函数检索显示,国有及恢复,最小化,并且对指定的窗口最大化的立场。
参数
hWnd
[in]的窗口句柄。
lpwndpl
[out]指向的WINDOWPLACEMENT结构,接收显示,国有及位置信息。在调用GetWindowPlacement,设置WINDOWPLACEMENT成员结构长度为sizeof(WINDOWPLACEMENT)。 GetWindowPlacement失败如果lpwndpl,“长度不正确。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
旗的WINDOWPLACEMENT成员检索此功能始终为零。如果由hWnd参数确定的窗口最大化,showCmd成员SW_SHOWMAXIMIZED。如果窗口是最小化,showCmd是SW_SHOWMINIMIZED。否则,它是SW_SHOWNORMAL。
的WINDOWPLACEMENT会员长度必须设置为sizeof(WINDOWPLACEMENT)。如果这个成员设置不正确,函数返回FALSE。就在窗口位置正确使用补充发言坐标,见WINDOWPLACEMENT。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
视窗概述,SetWindowPlacement,WINDOWPLACEMENT
==英文原文==GetWindowPlacement Function
The GetWindowPlacement function retrieves the show state and the restored, minimized, and maximized positions of the specified window.
Syntax
BOOL GetWindowPlacement( HWND hWnd,
WINDOWPLACEMENT *lpwndpl
);
Parameters
hWnd
[in] Handle to the window.
lpwndpl
[out] Pointer to the WINDOWPLACEMENT structure that receives the show state and position information. Before calling GetWindowPlacement, set the length member of the WINDOWPLACEMENT structure to sizeof(WINDOWPLACEMENT). GetWindowPlacement fails if lpwndpl-> length is not set correctly.
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 flags member of WINDOWPLACEMENT retrieved by this function is always zero. If the window identified by the hWnd parameter is maximized, the showCmd member is SW_SHOWMAXIMIZED. If the window is minimized, showCmd is SW_SHOWMINIMIZED. Otherwise, it is SW_SHOWNORMAL.
The length member of WINDOWPLACEMENT must be set to sizeof(WINDOWPLACEMENT). If this member is not set correctly, the function returns FALSE. For additional remarks on the proper use of window placement coordinates, see WINDOWPLACEMENT.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
See Also
Windows Overview , SetWindowPlacement , WINDOWPLACEMENT
==原始网址==http://msdn.microsoft.com/en-us/library/ms633518(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:19:42