SECEditViewport::OnUpdate
voidSECEditViewport::OnUpdate(IMvcSubject*pSubject, IMvcMessage*pMsg)
Handle notifications of change on the subject (SECEdit) this viewport is observing
Defined in: SECEditViewport.cpp
Return Value
void
Parameters
pSubject
The subject sending the update.
pMsg
A message indicating the change. This message is typically either an SECEditCommand or an SECEditCompositeCommand.
Comments
SECEditViewport responds to OnUpdate by first notifying the PresentationState of the message. The PresentationState is implemented by SECEditController. In the SECEditController::OnUpdate handler, the PresentationState is modifed to reflect any changes that may have been wrought by the message. These changes may include changes to the caret position or the selection state. Then the SECEditViewport invalidates any portions that may need to be repainted to reflect the changes.See Also