我只相对Combobox进行修改,不想用第三方控件。既然“该 ListBox 是在创建 ComboBox 时默认<br>创建的,没有加入 WS_HSCROLL 参数,而且也没有办法重载这个隐含的 ListBox 的构造<br>函数”,那我们能不能通过修改Combobox的PAS源代码的方法来实现?<br>BTW:用WIN32帮助中有<br>An application sends the CB_SETHORIZONTALEXTENT message to set the width,<br>in pixels, by which a list box can be scrolled horizontally (the scrollable<br> width). If the width of the list box is smaller than this value,<br> the horizontal scroll bar horizontally scrolls items in the list box. <br>If the width of the list box is equal to or greater than this value, <br>the horizontal scroll bar is hidden or, if the combo box has the <br>CBS_DISABLENOSCROLL style, disabled.<br><br>CB_SETHORIZONTALEXTENT <br>wParam = (WPARAM) cxExtent; // scrollable width of list box, in pixels <br>lParam = 0; // not used, must be zero <br>Parameters<br> cxExtent<br> Specifies the scrollable width of the list box, in pixels.<br>Return Values<br> No return value.<br><br>可是我没有试出来。