Can i display multiple views of the same file with CRichEditCtrl?
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
).
精彩评论