网站首页  词典首页

请输入您要查询的函数:

 

术语 setwindowplacement
释义 SetWindowPlacement
语法:
BOOL SetWindowPlacement( HWND hWnd,
WINDOWPLACEMENT *lpwndpl
);
SetWindowPlacement函数
该SetWindowPlacement函数设置显示,国有及恢复,最小化,并且对指定的窗口最大化的立场。
参数
hWnd
[in]的窗口句柄。
lpwndpl
[in]
指针WINDOWPLACEMENT结构,它指定新的显示,国有及窗口位置。
在调用SetWindowPlacement,设置WINDOWPLACEMENT成员结构长度为sizeof(WINDOWPLACEMENT)。 SetWindowPlacement失败如果lpwndpl,“长度不正确。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
如果WINDOWPLACEMENT指定的信息将导致一个窗口,是完全关闭屏幕,系统会自动调整坐标,使窗口可见,并在屏幕分辨率和多显示器配置帐户变化,。
的WINDOWPLACEMENT会员长度必须设置为sizeof(WINDOWPLACEMENT)。如果这个成员设置不正确,函数返回FALSE。就在窗口位置正确使用补充发言坐标,见WINDOWPLACEMENT。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
视窗概述,GetWindowPlacement,WINDOWPLACEMENT
==英文原文==SetWindowPlacement Function
The SetWindowPlacement function sets the show state and the restored, minimized, and maximized positions of the specified window.
Syntax
BOOL SetWindowPlacement( HWND hWnd,
WINDOWPLACEMENT *lpwndpl
);
Parameters
hWnd
[in] Handle to the window.
lpwndpl
[in]
Pointer to a WINDOWPLACEMENT structure that specifies the new show state and window positions.
Before calling SetWindowPlacement, set the length member of the WINDOWPLACEMENT structure to sizeof(WINDOWPLACEMENT). SetWindowPlacement 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
If the information specified in WINDOWPLACEMENT would result in a window that is completely off the screen, the system will automatically adjust the coordinates so that the window is visible, taking into account changes in screen resolution and multiple monitor configuration.
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
UnicodeImplemented as Unicode version.
See Also
Windows Overview , GetWindowPlacement , WINDOWPLACEMENT
==原始网址==http://msdn.microsoft.com/en-us/library/ms633544(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:46