如何让LISTBOX的垂直滚动条一直在框的下边?

日期:2016-02-28 08:54:31 人气:1

如何让LISTBOX的垂直滚动条一直在框的下边?

从CListBox继承一个自己的类CMyListBox,然后重载AddString() int CMyListBox::AddString(LPCTSTR lpszItem) { int iResult = CListBox::AddString(lpszItem); this->SetCurSel(this->GetCount()-1); return iResult; } 然后你的listbox控件用CMylistbox 或者 设置 LVS
    A+
热门评论