c++ - mouse move event on listview of a dialog box in MFC -
c++ - mouse move event on listview of a dialog box in MFC -
i have created dialogbox. on have created 2 list views. have created sub class list view. wanted know mouse, mean on list view. after find index of list view using clistctrl::hittest().
now getting index using hittest mouse move mutual both list view. how can distinguish list view in mouse move event.
finally going create tooltip according list view , index of list view.
clistctrl inherits form cwnd. can mouse pointers coordinates implementing cwnd::onmousemove. have 2 options:
either subclass clistctrl , implement onmousemove want in derived class either implement onmousemove in parent window (dialog window) , test coordinates of mouse against coordinates of 2 list controls.whatever solution pick maintain in mind onmousemove called , implementation of function must lite otherwise load computers resources , application lag.
hth, jp.
c++ mfc
Comments
Post a Comment