How to receive LVN_MARQUEEBEGIN in CListCtrl?

30 Views Asked by At

I have a class inherited from CListCtrl. Why I didn't receive any message for LVN_MARQUEEBEGIN in the method OnNotify() of my class when clicking and dragging???

I overwrote the method OnNotify() in my class and tried to reveive LVN_MARQUEEBEGIN. But it didn't work...

BOOL CListCtrlEx::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* 
pResult) 
{
    LPNMLISTVIEW pnmv = (LPNMLISTVIEW)lParam;

    switch(pnmv->hdr.code){
        case LVN_MARQUEEBEGIN: 
        ; // Deal with some case here.
        break;
    }

    return CListCtrl::OnNotify(wParam, lParam, pResult);
}
0

There are 0 best solutions below