应该很简单;只需要在现有的Dialog中添加一个滚动条 [英] Should be very simple; just need to add a scroll bar to existing Dialog

查看:1521
本文介绍了应该很简单;只需要在现有的Dialog中添加一个滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用原始源代码继承了一个可运行的可执行文件,我需要做一个小的更改。 我之前从未使用过VC ++,所以我完全迷失了。 

I recently inherited a working executable with the original source code and I need to make one small change.  I have never used VC++ before so I am completely lost. 

我需要在主对话框表格中添加一个垂直滚动条,允许用户根据需要滚动页面。  ;我们将在今年年底之前将此流程迁移到新程序,但上周有一名视力受损的员工开始。 他的b $ b必须运行非常低的分辨率,因此程序不再适合屏幕。 

I need to add a vertical scroll bar to the main Dialog form that allows the users to scroll the page as needed.  We are migrating this process to a new procedure by the end of the year, but had a visually impaired employee start last week.  He must run very low resolution so the program no longer fits on the screen. 

我只需更新"垂直"即可添加物理滚动条滚动"值从False到True,但我不知道如何使它工作,甚至在哪里添加代码。  

I was able to get the physical scroll bar added simply by updating the "Vertical Scrollbar" value from False to True, but I don't have the knowledge of how to make it work, or even where to add the code to.  

任何人都希望快速帮忙吗?

Anyone want a quick point for helping out? 

推荐答案

您好,

这里是一个可滚动的Dialog示例,它易于实现:
https://www.codeguru.com/cpp/wd/dislog/scrolling /article.php/c1859/A-Scrollable-Dialog-Class-CScrollDialog.htm

here is an example for a scrollable Dialog, which is easy to implement: https://www.codeguru.com/cpp/w-d/dislog/scrolling/article.php/c1859/A-Scrollable-Dialog-Class-CScrollDialog.htm

问候,Guido


这篇关于应该很简单;只需要在现有的Dialog中添加一个滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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