c++ - listview combobox -



c++ - listview combobox -

i have added combobox custom listview , trying set combobox's text current listview subitem.

case cbn_selchange: { char txt[200]; combobox_gettext(hcombo, txt, 256); int = sendmessage(hlistview, lvm_gethotitem,0, 0); listview_setitemtext(hlistview, i, 2, txt); }

what doing wrong?

the listview "hot" item item cursor hovered on , when hot tracking , hot selection enabled. sdk docs lvm_gethotitem poor job explaining hot item is. clistctrl::gethotitem docs give bit more detail.

at time create selection combo box, cursor not hovered on item in list box no text set.

you want selected item instead:

int = listview_getnextitem(hlistview, -1, lvni_selected);

this post has bit more information.

c++ winapi listview combobox

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -