combobox 水平滚动条

fydleon 2010-04-28 11:40:08
我用下面的方法实现了添加滚动条,但是,却滚动不了,实现不了滚动功能。为什么啊???急急急!!!

CWnd *pWnd= FindWindow("ComboLBox", NULL);
if(pWnd)
pWnd->ShowScrollBar(SB_BOTH,true);
...全文
172 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
tanwei1002 2010-04-29
  • 打赏
  • 举报
回复
BOOL ShowScrollBar(
HWND hWnd, // handle to window with scroll bar
int wBar, // scroll bar flag
BOOL bShow // scroll bar visibility flag
);

Parameters
hWnd
Handle to a scroll bar control or a window with a standard scroll bar, depending on the value of the wBar parameter.
wBar
Specifies the scroll bar(s) to be shown or hidden. This parameter can be one of the following values: Value Meaning
SB_BOTH Shows or hides a window's standard horizontal and vertical scroll bars.
SB_CTL Shows or hides a scroll bar control. The hWnd parameter must be the handle to the scroll bar control.
SB_HORZ Shows or hides a window's standard horizontal scroll bars.
SB_VERT Shows or hides a window's standard vertical scroll bar.


bShow
Specifies whether the scroll bar is shown or hidden. If this parameter is TRUE, the scroll bar is shown; otherwise, it is hidden.
wade_2003 2010-04-29
  • 打赏
  • 举报
回复
是要设置吧,在OninitUpdate()函数里设置
好像是setScroll()吧

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧