CODTextComponent::GetCtlBrush

HBRUSHCODTextComponent::GetCtlBrush(void)

Return a brush that can be used to paint the edit control.

Defined in: OdTextComp.cpp

Return Value

Handle to a brush to use to paint edit control.

Comments

This function is called in response to WM_CTLCOLOR messages, which are sent to the parent window when the edit control draws. This function sets the background color of the given DC to the color in the fill property object for the text component. It also uses the fill property object to create a brush and return it to the caller. The brush's lifetime is managed by the property object. This function is called from  CODController::OnCtlColor.