المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : CListCtrl problem



C++ Programming
04-01-2009, 02:12 PM
Dear All,

I want to display items in a CListCtrl but by default the Horizontal scroll bar is appearing if I add more items in the list.

But I need to display only Vertical bars if I add more items. I use like below :

m_List.EnableScrollBar(SB_VERT, true);
m_List.EnableScrollBar(SB_HORZ,false);

The above works only if the list is having minimum items, when it exceeds the client area then only Horizontal bar is working and Vertical bar is shown but not working.