MFC中函数GetWindowRect()和GetClientRect()的区别
GetWindowRect()、GetClientRect()
GetWindowRect();获取的是以屏幕为坐标轴,此窗口在屏幕上的位置。
GetClientRect();获取的是以其自身的最左上角的点为坐标原点,此窗口的位置。
MoveWindow
只能设置窗口的大小和位置
MFC中函数GetWindowRect()和GetClientRect()的区别
GetWindowRect();获取的是以屏幕为坐标轴,此窗口在屏幕上的位置。
GetClientRect();获取的是以其自身的最左上角的点为坐标原点,此窗口的位置。
只能设置窗口的大小和位置