CListCtrl Scrollbar
-
How do I always show the vertical scrollbar in an CListCtrl (report view)? Just call ShowScrollBar( SB_VERT, true ); in every OnSize method doesn't work, because then the last column (which has the flag LVSCW_AUTOSIZE_USEHEADER) is too big. The implementation of the CListCtrl seems to be really clumsy, because it is somehow handled completely different than in any other WIN32-Control. Thanks for any answer. Konrad
-
How do I always show the vertical scrollbar in an CListCtrl (report view)? Just call ShowScrollBar( SB_VERT, true ); in every OnSize method doesn't work, because then the last column (which has the flag LVSCW_AUTOSIZE_USEHEADER) is too big. The implementation of the CListCtrl seems to be really clumsy, because it is somehow handled completely different than in any other WIN32-Control. Thanks for any answer. Konrad
Hi, I'm trying to solve the very same problem and I haven't been successfull with that ShowScrollbar-function either.. It doesn't help that I'm not that experienced with MFC. I'm wondering that could this be solved by simply using the WS_VSCROLL style when creating the control? Well, in my app the scrollbar _does_ show in certain situations when using that style (even if there are only few items in the report view and therefore no actual need for the scrollbar) but I haven't been able to pinpoint the exact conditions for this. My guess is that this behavior has something to do with redrawing.. You tell me :) But hey, give it a try and let the world know if it works.. -Jussi