BOOL CBCGPDrawManager::DrawShadow | ( | CRect | rect, |
int | nDepth, | ||
int | iMinBrightness = 100 , |
||
int | iMaxBrightness = 50 , |
||
CBitmap * | pBmpSaveBottom = NULL , |
||
CBitmap * | pBmpSaveRight = NULL , |
||
COLORREF | clrBase = (COLORREF)-1 , |
||
BOOL | bRightShadow = TRUE |
||
) |
Draws the shadow for a rectangular screen element.
Call this function to display the shadow for a rectangular screen element. The shadow has the right and bottom images.
You can either provide two valid bitmaps pBmpSaveBottom and pBmpSaveRight containing the shadow images, or make the DrawShadow member function to draw the shadow. In the second case, if the pBmpSaveBottom and the pBmpSaveRight parameters are not NULLs, the function will attach to them the shadow images that have been displayed. Next time you will be able to provide these bitmaps to speed up the drawing of the shadow.
rect | Specifies the rectangular area to draw the shadow under. |
nDepth | Specifies the shadow width and height. |
iMinBrightness | Specifies the minimum brightness value for the shadow. |
iMaxBrightness | Specifies the maximum brightness value for the shadow. |
pBmpSaveBottom | Points to a bitmap, which may contain an image of the bottom part of the shadow. It can be NULL, or it can point to a valid CBitmap object. |
pBmpSaveRight | Points to a bitmap, which may contain an image of the right part of the shadow. It can be NULL, or it can point to a valid CBitmap object. |
clrBase | Specifies the (base) color of shadow. |
bRightShadow | If TRUE, the shadow is drawn under RTL window, e.g., the shadow is dropped from right to left. |