const MSG* pMsg = this->GetCurrentMessage();
if ( pMsg == NULL ) {
return; };
CPoint ptMsg = pMsg->pt; //Get point from the message
this->ScreenToClient(&ptMsg); //Convert the point's coords to be relative to this control
LVHITTESTINFO lvItemInfo;
lvItemInfo.pt = ptMsg;
int nItem = this->SubItemHitTest(&lvItemInfo); //Row Index - 0 base
int nSubItem = 3;//lvItemInfo.iSubItem; //Col Index - 0 base
[CListCtrl]取得目前滑鼠所在位置的儲存格座標
目前是應用在CListCtrl::OnMouseMove()裡,用來取得目前滑鼠所在位置。
Subscribe to:
Post Comments (Atom)
Build docker image from multiple build contexts
Build docker image from multiple build contexts ...
-
參考資料: Input Input Manager 測試手把 :PS Analog gamepad Script語言:C# Unity 版本:3.4 Unity提供了3種輸入裝置可以使用,鍵盤、滑鼠、以及遊戲手把。 ...
-
Markdown becomes the most popular documenting language in any technical documentation nowadays. The benefit of using Markdown is getting for...
No comments:
Post a Comment