在选择项目时停止关闭组合框 [英] stop closing combo box on selecting an item

查看:86
本文介绍了在选择项目时停止关闭组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我从CComboBoxEx和
派生了CMyComboBox类. 当我们从中选择条目时,它正在关闭组合框,但我不想为组合框中的某些条目关闭它.

我该怎么办?

例如
以下是组合框中的条目

---部门---
Dep_Name1
Dep_Name2


所以在这里,当我们选择条目"---部门---"时,我不想关闭组合框.

我该怎么做?

Hi,

I derived the class CMyComboBox from CComboBoxEx and
when we select the entry from it then it is closing combo box but i do not want to close it for some entries in the combo box.

how do i do this?

e.g.
following are the entries in combo box

---Departments---
Dep_Name1
Dep_Name2


so here, when we select the entry ''---Departments---'' then i dont want to close combo box.

how do i do this?

推荐答案

这篇文章所做的事情与您要求的类似

自定义组组合框 [
This artical does something similar to what you require

A Custom Group Combo Box[^]


这篇关于在选择项目时停止关闭组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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