摘要: CRect rect; CWnd *pWnd = GetDlgItem(IDC_STATIC_PIC); pWnd->GetWindowRect(&rect); ScreenToClient(&rect); //先获取鼠标相对于屏幕的坐标 GetCursorPos(&point); //然后得到static控件的rect坐标 CRect pRect; pWnd->GetClientRe... 阅读全文
posted @ 2017-02-24 16:19 一样菜 阅读(4411) 评论(0) 推荐(0) 编辑