您的位置:首页 > 其它

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

2013-04-27 14:19 351 查看
获取窗口关闭,最大化等按钮的位置信息,获取可见窗体在显示器中的相关信息

GetSystemMetrics Function
发送反馈

Retrieves the specified system metric or system configuration setting.

Note that all dimensions retrieved by GetSystemMetrics are in pixels.

Syntax

[code]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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: