visual c++ - How to add a image with center alignment in CListCtrl using LVITEM -
i trying set center alignment second column in clistctrl has image in contents. how that?
m_mylistctrl.insertcolumn(0, l"no.", lvcfmt_left, 75); m_mylistctrl.insertcolumn(1, l"result", lvcfmt_left, 75); // column has image needs center aligned m_mylistctrl.insertcolumn(2, l"values", lvcfmt_left, 75); m_mylistctrl.insertcolumn(3, l"description", lvcfmt_left, 75); //adding image image list below lvi.iitem = nlistitem; lvi.isubitem = nsubitem; lvi.iimage = 2;//(takes image image list loaded)
Comments
Post a Comment