BCGSuite for MFC
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.

Returns
Nonzero if successful; otherwise 0.

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.

Parameters
rectSpecifies the rectangular area to draw the shadow under.
nDepthSpecifies the shadow width and height.
iMinBrightnessSpecifies the minimum brightness value for the shadow.
iMaxBrightnessSpecifies the maximum brightness value for the shadow.
pBmpSaveBottomPoints 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.
pBmpSaveRightPoints 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.
clrBaseSpecifies the (base) color of shadow.
bRightShadowIf TRUE, the shadow is drawn under RTL window, e.g., the shadow is dropped from right to left.