【VS开发】CListBox智能滚动设置
2023-09-27 14:20:29 时间
添加数据以后,再在下面加句,
int nCount = m_myListBox.GetCount();
if (nCount > 0)
m_myListBox.SetCurSel(nCount - 1);
其实是在output页卡中实现自动滚动显示最新添加的info,因为
COutputList m_wndOutputInfo;
m_wndOutput.m_wndOutputInfo.AddString(str);//输出信息
int nCount = m_wndOutput.m_wndOutputInfo.GetCount();
if(nCount>0)
m_wndOutput.m_wndOutputInfo.SetCurSel(nCount - 1);
str.Empty();
2016-5-4
张朋艺 pyzhangbit2010@126.com
相关文章
- 面向过程 VS 面向对象
- 【Golang】✔️走进 Go 语言✔️ 第九课 局部变量 vs 全局变量
- 【VS开发】MFC修改Opencv namedWindow的风格
- 【VS开发】【C++开发】正确使用auto_ptr智能指针
- 【VS开发】【智能语音处理】DTW算法(语音识别)
- 【VS开发】【智能语音处理】MATLAB 与 音频处理 相关内容摘记
- 【VS开发】【智能语音处理】解读男女声音的区别:亮度,糙度
- 【VS开发】CListBox智能滚动设置
- 【VS开发】CListCtrl控件使用方法总结
- Java Synchronized Blocks vs. Methods
- 智能盒子大比拼:Fire TV vs. Apple TV vs. Roku 3 vs. Chromecast
- 解析:智能沙盒vs.传统沙盒
- VS 2017与 Docker
- OSMC Vs. OpenELEC Vs. LibreELEC – Kodi Operating System Comparison
- viedo formats vs file formats
- vs 中快捷实现父类方法
- VS Code使用Git可视化管理源代码详细教程
- vs如何运行不安全的代码/不安全代码只会在使用 /unsafe 编译的情况下出现
- VS Code配置Python虚拟环境(venv)和代码自动补全(智能提示)
- 使用VS Code开发ASP.NET 5 应用程序