OwnerDraw ListCtrl problem - help!
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, I have an owner draw list ctrl. i want to force a vertical scroll to be shown when the dialog that the list sits on appears. this is the code i've tried : ListView_SetExtendedListViewStyle(m_lc.m_hWnd, LVS_EX_FLATSB|LVS_EX_FULLROWSELECT ); now i've inserted some columns and then: m_lc.ModifyStyle(0,WS_VSCROLL); m_lc.SetScrollRange(SB_VERT,0,100); m_lc.SetScrollPos(SB_VERT,0); m_lc.ShowScrollBar(SB_VERT); this doesn't show the vertical scroll bar. the bar only show when the limit of inserted items succeeds. can any1 show me what to do in order to force the scroll bar? thanks in advanced Yaron Ask not what the application can do for you, ask what you can do for your application