GetCursorPos可以得到鼠标在屏幕上的坐标,如何得到鼠标在窗口客户区(不包括标题栏)的坐标呢?
用减法还是另有函数?
两种我都不晓得~~

解决方案 »

  1.   

    请楼主首先研读下面这个帖子
    http://expert.csdn.net/Expert/topic/1733/1733287.xml?temp=.266247ScreenToClient()可以帮助你解决问题。
    ============================================================================
    提问题时标题要简明扼要地说明问题内容,切忌使用"急","求救"之类不能说明问题的标题
    http://www.betajin.com/alphasun/index.htm          给我发信息请附带原帖地址
    http://alphasun.18en.com/                    http://shakingtoolkit.9126.com/
    DocWizard C++程序文档自动生成工具 | Wave OpenGL | HttpProxy | AjaxParser词法分析
      

  2.   

    得到了之后,用ScreenToClient转换
    void ScreenToClient( LPPOINT lpPoint ) const;void ScreenToClient( LPRECT lpRect ) const;
      

  3.   

    to alphapaopao(炮炮):
    嘿嘿,我知错了~~散分!!