win32API
RECT rect; CWnd* pWnd = GetDlgItem(IDC_LIST1); HWND hWnd = pWnd->GetSafeHwnd(); BOOL b = ::GetClientRect(hWnd, &rect);//获取窗口客户区的坐标 /* 参数1:HWND hWnd 窗口句柄 参数2:LPRECT lpRect 返回客户区坐标 该结构有四个LONG字段,分别为left、top、right和bottom GetClientRect将这四个字段设定为窗口显示区域的尺寸。 left和top字段通常设定为0。right和bottom字段设定为显示区域的宽度和高度(像素点数) 也可以是一个CRect对象指针。CRect对象有多个参数,与RECT用法相同 返回值:如果函数成功,返回一个非零值。如果函数失败,返回零 */
- MFC-GetClientRect 坐标 GetClientRect 客户 MFCmfc-getclientrect坐标getclientrect客户 mfc-getclientrect mfc-getcursorpos坐标getcursorpos屏幕 矩形mfc-setrectempty坐标setrectempty 矩形 坐标mfc-setrect setrect 矩形 坐标 拷贝mfc-copyrect 坐标系 坐标mfc-clienttoscreen clienttoscreen 坐标mfc-screentoclient screentoclient屏幕 getclientrect mfc