Hiding vertical scrollbar in CListCtrl
-
I want to hide vertical scroll bar in CListCtrl derived class I tried this code in PreCreateWindow: DWORD dwStyle = cs.style; if(dwStyle & WS_VSCROLL) { dwStyle &= ~WS_VSCROLL; cs.style = dwStyle; } and this in OnSize: DWORD dwStyle = ::GetWindowLong(GetSafeHwnd(), GWL_STYLE); if(dwStyle & WS_VSCROLL) { ::SetWindowLong(GetSafeHwnd(), GWL_STYLE, dwStyle & (~WS_VSCROLL)); } but it doesnt work, I still have scrollbar any suggestions? thankx in advance nobody is perfect
-
I want to hide vertical scroll bar in CListCtrl derived class I tried this code in PreCreateWindow: DWORD dwStyle = cs.style; if(dwStyle & WS_VSCROLL) { dwStyle &= ~WS_VSCROLL; cs.style = dwStyle; } and this in OnSize: DWORD dwStyle = ::GetWindowLong(GetSafeHwnd(), GWL_STYLE); if(dwStyle & WS_VSCROLL) { ::SetWindowLong(GetSafeHwnd(), GWL_STYLE, dwStyle & (~WS_VSCROLL)); } but it doesnt work, I still have scrollbar any suggestions? thankx in advance nobody is perfect
dwStyle &= LVS_NOSCROLL; Signature space for rent. Apply by email to....
-
dwStyle &= LVS_NOSCROLL; Signature space for rent. Apply by email to....
-
I want to hide vertical scroll bar in CListCtrl derived class I tried this code in PreCreateWindow: DWORD dwStyle = cs.style; if(dwStyle & WS_VSCROLL) { dwStyle &= ~WS_VSCROLL; cs.style = dwStyle; } and this in OnSize: DWORD dwStyle = ::GetWindowLong(GetSafeHwnd(), GWL_STYLE); if(dwStyle & WS_VSCROLL) { ::SetWindowLong(GetSafeHwnd(), GWL_STYLE, dwStyle & (~WS_VSCROLL)); } but it doesnt work, I still have scrollbar any suggestions? thankx in advance nobody is perfect
Hello, I have the same problem in horizontal scroll, i am trying to make it disappear. i tried also in the OnSize same as you and it didn't work.... i would like to know if u solved the problem, if u did can u tell me how please? thanks in advanced Yaron Ask not what the application can do for you, ask what you can do for your application