I created a ownerdraw, Report style, CExListCtrl. This class is derived from CListCtrl (MFC). I have overwritten OnKeyDown (and more) to catch key strokes and mouse button clicks. I'm using OnKeyDown to catch all navigating keyhits (arrow keys, pageup, pagedown, ...). The ExListCtrl displays...
hello,
If You Use GetItemState (nItem, nState, nStateMask) the return value is the state of the item / subitem. If you set the state LVIS_SELECTED | LVIS_FOCUSED you should get the value 3 (LVIS_SELECTED = 2 and LVIS_FOCUSED = 1). Use lvItem.State & LVIS_FOCUSED or lvItem.State & LVIS_SELECTED...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.