SECEditViewport::Draw

voidSECEditViewport::Draw(CDC*pDC)

Called by the MVC Framework when this viewport needs to be repainted.

Defined in: SECEditViewport.cpp

Return Value

void

Parameters

pDC

The DC to render the viewport onto.

Comments

Renders the text of the  SECEdit onto the screen by breaking this text down into smaller blocks and then renering these blocks.

Developer Notes

SECEditViewport renders the text of the  SECEdit object a block at a time. These blocks are grouped according to the syntax color information that is cached by  SECEdit in the SECEdit::m_LineColorArray . For example, a line that is a single line comment preceeded by some whitespace would be rendered in two blocks; first the block of whitespace and then the block of the comment text. A line having a single keyword preceeded and followed by some regular text would be rendered in three blocks: All the text up to the keyword followed by the keyword and then followed by the remainder of the text for the line.

See Also

SECEditViewport  DrawBlock  RenderBlockText