Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ MFC
How can I hide ScrollBar from a List.
 
I tried to using EnableScrollBarCtrl(), ShowScrollBar() but it doesnt work
Posted 21-Feb-13 1:15am
Hieu388427
Comments
Richard MacCutchan at 21-Feb-13 7:57am
   
Please provide more information we cannot guess what your program is doing.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

I think this article may help you.
Hide scrollbars from a CListCtrl
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

If it is Horizontal/vertical scroll bar, remove the WS_HSCROLL/WS_VSCROLL style from your list. You can make use of SetWindowLongPtr functions.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hi,
 
sollution of this issue should be quite easy. Every, MFC component class has a method ShowWindow() that accepts TRUE/FALSE values or the window display-mode. The method comes from the class CWnd, from which other componens are inherited. See documentation of this method at MSDN
 
Calling this method should solve your problem.
 
Best regards,
J. K.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 510
1 CPallini 330
2 OriginalGriff 225
3 George Jonsson 120
4 ChauhanAjay 104
0 OriginalGriff 6,474
1 Sergey Alexandrovich Kryukov 6,190
2 CPallini 5,180
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100