MFC控件增加滚动条

以Listbox Control为例。         首先,子类化CListBox,重载AddString和InsertString函数;并且根据加入的字符,判断行的宽度,实现RefushHorizontalScrollBar函数,如下: //HorScrollListBox.h #include <windows.h> #include <afxwin.h> // CHorScrollList
相关文章
相关标签/搜索