void CTransListCtrl::OnBegintrack(NMHDR* pNMHDR, LRESULT* pResult)
{
HD_NOTIFY *phdn = (HD_NOTIFY *) pNMHDR;
// TODO: Add your control notification handler code here
*pResult = 0;
}
void CTransListCtrl::OnEndtrack(NMHDR* pNMHDR, LRESULT* pResult)
{
HD_NOTIFY *phdn = (HD_NOTIFY *) pNMHDR;
// TODO: Add your control notification handler code here
*pResult = 0;
}
BOOL CTransListCtrl::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
// TODO: Add your specialized code here and/or call the base class
switch (((NMHDR*)lParam)->code)
{
case HDN_BEGINTRACKW:
{
m_pSelectPathButton->ShowWindow(SW_HIDE);
}
break;
case HDN_BEGINTRACKA:
break;
case HDN_ENDTRACKW:
{
int nCount = GetSelectedCount();
POSITION pos = GetFirstSelectedItemPosition();
int nIndex= GetNextSelectedItem(pos);
if (nCount)
{
MoveButton(nIndex,2);
m_pSelectPathButton->ShowWindow(SW_SHOW);
}
}
break;
case HDN_ENDTRACKA:
break;
}
return CListCtrl::OnNotify(wParam, lParam, pResult);
}