CODTextComponent::BeginEdit

BOOL CODTextComponent::BeginEdit(MvcViewport* pContainer)

Puts the text component into edit mode.

Defined in: OdTextComp.cpp

Return Value

TRUE if successful, otherwise FALSE.

Parameters

pContainer

Pointer to viewport in which to edit the text component.

Comments

This function creates an edit control whose parent is the window that contains the given viewport. If the text component is at an angle other than zero degrees, this function rotates it back to zero degrees for editing. The angle is saved in the m_nSaveAngle member so that the component can be rotated back to its original angle when editing is complete.