Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法让我取消函数中CComboBox中值的变化?在某些情况下,应该取消更改,CComboBox 保留旧值,并向用户显示错误消息。
没有标准的方法。您必须手动对其进行编码。在每次调用时保留组合框的旧选择值OnCbnSelchangeXXX(),检查条件并在满足时恢复它。
OnCbnSelchangeXXX()