1.CComboBox放在对话框构造函数中, 这时CCombobox对象还没建立, 所以出错, 应该放在OnInitDialog()中初始化.

2. 使用的vs2005以上的IDE, 拖拉控件, 添加成员变量时CComboBoxEx对象, 不是CComboBox, 不支持AddString函数, 可用InsertItem

 AddString()

This function is not supported by the Windows ComboBoxEx control. For more information on this control, see ComboBoxEx Controls in the Platform SDK.

相关文章:

  • 2022-02-06
  • 2021-06-23
  • 2021-12-30
  • 2022-12-23
  • 2021-06-30
  • 2021-07-19
  • 2022-12-23
猜你喜欢
  • 2021-06-10
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案