[ZZ]在MFC中有多个slider时OnHScroll函数判断方法
2010-11-30 10:12
99 查看
在OnHScroll开始时添加几个CWnd*变量,在和参数中pScrollBar判断就可以了
原帖地址:http://hi.baidu.com/ncudlz/blog/item/fba375dd6b6b74d18d1029d8.html
void CPlayerDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) { // TODO: Add your message handler code here and/or call default CWnd *pSliderPos = this->GetDlgItem(IDC_SLIDER_POS); CWnd *pSliderVolume = this->GetDlgItem(IDC_SLIDER_VOLUME); if (pScrollBar == pSliderVolume) { 。。。 。。。 } if (pScrollBar == pSliderPos) { 。。。 。。。 } CBitmapDialog::OnHScroll(nSBCode, nPos, pScrollBar); }
原帖地址:http://hi.baidu.com/ncudlz/blog/item/fba375dd6b6b74d18d1029d8.html
相关文章推荐
- MFC中有多个slider时OnHScroll函数的判断方法
- vc中判断文件夹是否存在的方法[zz]
- MFC判断内存泄露的简单方法 CmemoryState
- [ArcGIS Engine][MFC/VS2008]判断图层是点图层、线图层还是面图层的方法
- MFC的View子类中判断当前view是否是活动的方法
- MFC使用ADO方式访问ACCESS数据库判断数据重复的方法
- MFC Ribbon 获取 ComBox,Slider,Edit等方法
- MFC判断文件夹路径是否存在以及创建文件夹的方法
- 在MFC中有多个slider时OnHScroll函数响应哪一个的处理方法
- MFC在VS2008中对ActiveX控件添加方法
- oracle判断汉字和全角字符的方法 转
- ThinkSNS中判断访问请求请求来源是否为手机的方法
- MFC ImageList控件的使用方法
- iOS开发之回调delegate的方法时判断delegate是否已经被释放
- selenium 判断某一个提交操作是否成功的方法
- 简单编程(十四)定义一个方法能够判断并返回两个整数的最大值,并调用自己的方法测试是否正确。
- MFC开发IM-第五篇、MFC中改变static字体颜色、大小、背景颜色(自定义类),及手动关联变量的方法
- python学习四:import模块方法、可变参数、字典key判断、版本信息获取、列表解析、
- Type类方法的使用-判断某个类是否是某个接口的派生类
- Mysql字符串字段判断是否包含某个字符串的3种方法