开发者

Can i display multiple views of the same file with CRichEditCtrl?

开发者 https://www.devze.com 2023-03-26 16:11 出处:网络
I have to CRichEditCtrl controls in a dialog window with multiple tabs which开发者_如何学运维 might display the same file.

I have to CRichEditCtrl controls in a dialog window with multiple tabs which开发者_如何学运维 might display the same file.

How can i synchronize the editing in them?


If you are using CPropertySheet and CPropertyPage for multiple-tab support, you may override CPropertyPage::OnSetActive and CPropertyPage::OnKillActive. Set the current text in OnKillActive and set the same text for other tab that is going to be active (in OnSetActive).

0

精彩评论

暂无评论...
验证码 换一张
取 消