MFC获取窗体在设备上的相关信息,位置,设备信息等

来源:互联网 发布:软件项目质量管理体系 编辑:程序博客网 时间:2024/05/22 06:41
获取窗口关闭,最大化等按钮的位置信息,获取可见窗体在显示器中的相关信息
GetSystemMetrics Function 

Retrieves the specified system metric or system configuration setting.

Note that all dimensions retrieved by GetSystemMetrics are in pixels.

Syntax

int WINAPI GetSystemMetrics(  __in  int nIndex);
int WINAPI GetSystemMetrics(  __in  int nIndex);

Parameters

nIndex [in]

The system metric or configuration setting to be retrieved. This parameter can be one of the following values. Note that all SM_CX* values are widths and all SM_CY* values are heights. Also note that all settings designed to return Boolean data represent TRUE as any nonzero value, and FALSE as a zero value.

原创粉丝点击