SEC_TREECLASS::Update

BOOLSEC_TREECLASS::Update(HTREEITEMhti, BOOLbLabelOnly, BOOLbEraseBkgnd, BOOLbUpdateBelow, BOOLbUpdateNow)

Updates the drawing of an item.

Defined in: trcore.inl

Return Value

Nonzero if successful; otherwise 0.

Parameters

hti

The handle of the item to update.

bLabelOnly

Flag indicating whether to update only the label of the item; default is FALSE.

bEraseBkgnd

Flag indicating whether to erase background. Default is TRUE.

bUpdateBelow

Flag indicating whether to update below the item. Default is FALSE.

bUpdateNow

If TRUE, the item will be repainted immediately, bypassing the message queue. Default FALSE.

Comments

Call this function to redraw an item or part of an item. This is used internally by the control to invalidate items and to immediately redraw in some cases, such as drop highlighting, when messages may be locked.