ListCtrl Ownder Draw problem
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, i have created my own list ctrl that inherites from CListCtrl and has the property ownder draw fixed. I want to force it to show vertical scroll bar. i wrote the following code: m_lc.ModifyStyle(0,WS_VSCROLL); m_lc.SetScrollRange(SB_VERT,0,100); m_lc.SetScrollPos(SB_VERT,0); m_lc.ShowScrollBar(SB_VERT); if i hook with spy++ to the list ctrl , i can see that the style was changed and now has WS_VSCROLL, but i don't see the vertical scroll bar. it only appears when many items has been inserted to the list.... can any1 help? thanks Yaron Ask not what the application can do for you, ask what you can do for your application