BOOL CBCGPDrawManager::HighlightRect | ( | CRect | rect, |
int | nPercentage = -1 , |
||
COLORREF | clrTransparent = (COLORREF)-1 , |
||
int | nTolerance = 0 , |
||
COLORREF | clrBlend = (COLORREF)-1 |
||
) |
Makes a rectangular area highlighted.
Call this member function to highlight a rectangular area. If nPercentage is between 0 and 99 ([0, 99]), the HighlightRect function uses the alpha blending algorithm. If the nPercentage parameter is -1, it uses the default highlight level (e.g., Microsoft Office 2000-style menus highlighting). If nPercentage is 100, it does nothing and returns TRUE.
rect | Specifies a rectangular area to fill. |
nPercentage | Specifies the transparency percentage. |
clrTransparent | Specifies the transparent color. |
nTolerance | Color tolerance. Should be within 0-255 range. |
clrBlend | Base blending color. |