GetCursorPos(&ptPoint)问题???

来源:互联网 发布:乌克兰人在中国知乎 编辑:程序博客网 时间:2024/05/18 07:14
CRect rcRect;CPoint ptPoint;
GetClientRect(&rcRect);
ClientToScreen(&rcRect);
GetCursorPos(&ptPoint);
BOOL bInRc=rcRect.PtInRect(ptPoint);

为什么ptPoint总不在rcRect里呢,
GetCursorPos取得的究竟是什么的坐标,
0 0