Menu
  • HOME
  • TAGS

Set horizontal scroll of CListBox row back after resetting content

c++,mfc,visual-studio-2005,horizontal-scrolling,clistbox

If I understand you correctly, you're trying to scroll the text in the list box horizontally using the program code. If you use Spy++, you'll see that when you manually scroll, using the mouse, a series of WM_HSCROLL messages is posted to the list box control. You can accomplish the...

Why can't I get the selected items in the CListBox? MFC

c++,mfc,clistbox

In a single-selection listbox (that I am guessing you're using because you call GetSelItems with nMaxItems set to 1), GetSelItems is not supported. Use GetCurSel instead: int i = m_Lb_Avail_Cmnds.GetCurSel(); ...