BOOL GetWindowRect(
HWND hWnd, // handle of window
LPRECT lpRect // address of structure for window coordinates
);
函数功能:该函数返回指定窗口的边框矩形的尺寸。该尺寸以相对于屏幕坐标左上角的屏幕坐标给出。获取后可用
ClassRect.属性取得属性值
TRect ClassRect;
GetWindowRect(hWindow, &ClassRect);
本文介绍GetWindowRect函数的使用方法,此函数用于获取指定窗口的边框矩形尺寸,尺寸以屏幕坐标形式给出。文中提供了获取窗口尺寸的具体代码示例。
BOOL GetWindowRect(
HWND hWnd, // handle of window
LPRECT lpRect // address of structure for window coordinates
);
函数功能:该函数返回指定窗口的边框矩形的尺寸。该尺寸以相对于屏幕坐标左上角的屏幕坐标给出。获取后可用
ClassRect.属性取得属性值
TRect ClassRect;
GetWindowRect(hWindow, &ClassRect);

被折叠的 条评论
为什么被折叠?