Home > Software engineering >  The CListCtrl (MFC) ICON ICON mode how to enable the horizontal scroll bar
The CListCtrl (MFC) ICON ICON mode how to enable the horizontal scroll bar

Time:09-15

In the CListCtrl Icon mode, to achieve the effect on the picture below,



But now my program when the list is full, there is a vertical scroll bar, not a horizontal scroll bar, if anyone can solve this little problem?

CodePudding user response:

The building Lord, according to my experiment, whatever the mode of CListCtrl. Add elements to the list is full, will appear horizontal scroll bar, rather than the vertical scroll bar

CodePudding user response:

reference
anyone can solve this small problem


1 listctrl control size is larger than that of its container?
2 is there in like OnSize function changes the size of the listctrl control?
3 it is possible that the Bug, the official reply to this and give the solution,

https://connect.microsoft.com/VisualStudio/feedback/details/848563/clistctrl-horizontal-scrollbar-is-not-showing-up-even-if-excess-of-columns-are-added-in-common-control-6#tabs

CodePudding user response:

Use listbox?
"Improved version PeIcons.zip"
http://download.csdn.net/detail/schlafenhamster/3011852
"Is PeIcons. The improved version of rar, increased the Tree from the painting, and some unexpected check"

CodePudding user response:

(1) ICON in the form, if you set properties of alignment as LVS_ALIGNTOP so when content can hold, only the Vertical Scroll bar (Vertical Scroll)
(2) the ICON in the form, if you set properties of alignment as LVS_ALIGNLEFT so when content can hold, will only appear Horizontal Scroll bar (Horizontal Scroll)
  • Related