在选择项目时停止关闭组合框

在选择项目时停止关闭组合框

问题描述:



我从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[^]