void CListaDevice::OnClickTree(NMHDR* pNMHDR, LRESULT* pResult) { *pResult = FALSE; CPoint pt; GetCursorPos( &pt ); m_wndTreeDevice.ScreenToClient( &pt ) ; UINT nFlags = 0; HTREEITEM hItem = m_wndTreeDevice.HitTest( pt, &nFlags ) ; if( hItem == NULL || !(nFlags & (TVHT_ONITEMLABEL|TVHT_ONITEMICON)) ) return; //hItem is always 0x0000!!! }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)