如何在combox中捕获listbox selchange并编辑控件en_change事件 [英] How to capture listbox selchange and edit control en_change events in combox
问题描述
我的组合使用的是CBN_DROPDOWN样式。
My combo is using CBN_DROPDOWN style.
我将列表框子类化并在组合框中编辑控件。
I subclassed the listbox and edit contol in combobox.
在OnInitdialog中,我使用choosetring在combobox中选择了一个项目。
In OnInitdialog I selected an item in combobox using selectstring.
在CBN_DROPDOWN事件中,组合框的列表框显示时已选中一个项目但我无法在列表框中捕获LBN_SELCHANGE以及编辑控件中的EN_CHANGE或EN_UPDATE事件。
On CBN_DROPDOWN event, combobox's listbox is getting displayed with an item selected but I am not able to capture LBN_SELCHANGE in listbox and also EN_CHANGE or EN_UPDATE event in edit control.
请帮帮我。
推荐答案
我的组合框使用CBN_DROPDOWN样式。
My combobox is using CBN_DROPDOWN style.
在Combobox窗口程序中没有触发CBN_EDITCHANGE。
CBN_EDITCHANGE is not getting triggered in the Combobox window procedure.
这篇关于如何在combox中捕获listbox selchange并编辑控件en_change事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!