VC雕虫小技集(五)[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 he_zhidan 的 blog

    if(wm_mousemove == pmsg->message)

              if(pmsg->hwnd == getdlgitem(idc_button1)->getsafehwnd())

              {                    

                     uint nflag  = pmsg->wparam;        // 状态,ctrl是不按下

                     int xpos = loword(pmsg->lparam);  // horizontal position of cursor

                     int ypos = hiword(pmsg->lparam);  // vertical position of cursor

             

              }

       return cdialog::pretranslatemessage(pmsg);

}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

本文关键:VC 雕虫小技集
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top