BCGSoft Professional Editor for MFC
void CBCGPEditCtrl::SetWordColor ( CString  strWord,
COLORREF  clrFrgnd = -1,
COLORREF  clrBkgnd = -1,
BOOL  bCaseSensitive = TRUE 
)

Assigns the specified foreground and background colors to a word.

This function is used for syntax coloring and assigns the specified foreground and background colors to a word.

Parameters
strWordThe word.
clrFrgndForeground color.
clrBkgndBackground color.
bCaseSensitiveIf TRUE, the word is case sensitive. If FALSE, the word is non case sensitive (for example, int, Int and INTwill be highlighted).