调整窗口大小时滚动条消失 [英] scrollbar disappears while resizing the window

查看:148
本文介绍了调整窗口大小时滚动条消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用CW_派生类,使用WS_VSCROLL创建。

使用setscrollInfo正确更新滚动条位置,范围......但是当我们调整容器窗口(对话框)的大小时,突然滚动条会因某些窗口大小而消失。如果我进一步增加或减少,则再次出现滚动条。

根据窗口尺寸粘贴滚动条的最佳方法是什么。

如果您需要任何额外的输入,请回复我。



提前致谢

最好的问候

Raghav

Hi
I am working with CWnd derived class, created with WS_VSCROLL.
Correctly updating the scrollbar positions, ranges... using setscrollInfo. But when we are resizing the container window (dialog) suddenly scrollbar disappears for some window sizes. If i increase further or decrease furhter, again the scrollbar appears.
What can be the best method to stick the scrollbar according to the window size.
Please reply me if you need any additional inputs.

Thanks in advance
Best Regards
Raghav

推荐答案

滚动条是通常只在需要时显示,否则隐藏。您可以使用 ShowScrollBar 来控制它。



http://msdn.microsoft.com/en-us/library/bb787601%28VS.85%29.aspx [< a href =http://msdn.microsoft.com/en-us/library/bb787601%28VS.85%29.aspxtarget =_ blanktitle =New Window> ^ ]



一些额外的信息:

http://msdn.microsoft.com/en-us/library/bb787527%28VS.85%29.aspx#scroll_bar_visibility [ ^ ]



祝你好运!
The scrollbars are normally only shown when needed and hidden otherwise. You can use ShowScrollBar to control this.

http://msdn.microsoft.com/en-us/library/bb787601%28VS.85%29.aspx[^]

Some additional info:
http://msdn.microsoft.com/en-us/library/bb787527%28VS.85%29.aspx#scroll_bar_visibility[^]

Good luck!


在视图的OnInitialUpdate中调用SetScrollSizes。
call SetScrollSizes in OnInitialUpdate of the view.


我在Win上面临同样的问题XP时我们把Win 98经典风格。任何建议??
I am facing the same issue on Win XP when we put the Win 98 classic style. Any Suggestion ??


这篇关于调整窗口大小时滚动条消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆