无法在Windows7中隐藏组合框 [英] Unable to Hide Combobox in Windows7

查看:104
本文介绍了无法在Windows7中隐藏组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我从CFileDialog派生了一个类,在此对话框中,我试图隐藏文件名组合框(GetParent()-> GetDlgItem(cmb13)-> ShowWindow(SW_HIDE);).这段代码在Windows XP中可以正常工作,但是我无法在Windows-7中隐藏组合框.

Hi, I have derived one class from CFileDialog, in this dialog i am trying to hide the file name combobox (GetParent()->GetDlgItem(cmb13)->ShowWindow(SW_HIDE);). This code works fine in windows-XP but i cant able to hide combobox in Windows-7.

推荐答案

您可以使用函数HideControl(),前提是 cmb13 具有文件名组合的确切控件ID值.
you can use the function HideControl(), provided the cmb13 has the exact control ID value of the file name combo.
HideControl( cmb13 );


这篇关于无法在Windows7中隐藏组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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