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.
我有自己的 CEDIT 子类,如下所示:
class MyEdit : public CEdit....
我通过 在这个子类中挂钩并在DoDataExchange程序中对它进行子类化DDX_controlON_CHARON_CHANGE (MyEdit::OnChar, MyEdit::OnChange).
DoDataExchange
DDX_control
ON_CHAR
ON_CHANGE
(MyEdit::OnChar, MyEdit::OnChange).
我在父对话框中也需要钩子ON_CHANGE事件,但是使用子类它不起作用。
这里有某种方式如何手动从 MyEdit::OnChange消息发送到对话框?
MyEdit::OnChange
我刚刚解决了。我已经EN:CHANGE通过使用EN_UPDATE事件解决了丢失问题。EN_UPDATE尽管进行了子分类,但仍在发布CEdit...
EN:CHANGE
EN_UPDATE
CEdit