如何在单击选项卡控件时禁用组合框 [英] How to disable combo box on clicking of tab control

查看:73
本文介绍了如何在单击选项卡控件时禁用组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,其中有两个接口,如串行和USB,我使用两个对话框串行和USB分离选项卡控制,以区分这些接口。当我点击USB标签然后一个组合框必须显示现在我们操作串口或禁用它和反之。所以我的问题是如何做到。

提前谢谢

解决方案

在选项卡控件的处理程序中,执行:



 m_ctrlBlah。 EnableWindow(FALSE); 


I have an application in which there are two interfaces say Serial and USB and I am using two dialog for Serial and USB separate by tab control to differentiate these Interfaces. And when I click the USB Tab then one Combo box have to show that now we operate on Serial or disable it and vice verse.So my question is how to do it.
Thanks in advance

解决方案

In the handler for the tab control, do:

m_ctrlBlah.EnableWindow(FALSE);


这篇关于如何在单击选项卡控件时禁用组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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