CDrawingManager::PrepareShadowMask
Creates a bitmap that can be used as a shadow.
static HBITMAP __stdcall PrepareShadowMask (
int nDepth,
COLORREF clrBase,
int iMinBrightness = 0,
int iMaxBrightness = 100
);
Parameters
[in] nDepth
The width and height of the shadow.[in] clrBase
The color of the shadow.[in] iMinBrightness
The minimum brightness of the shadow.[in] iMaxBrightness
The maximum brightness of the shadow.
Return Value
A handle to the created bitmap if this method is successful; otherwise NULL.
Remarks
If nDepth is set to 0, this method exits and returns NULL. If nDepth is less than 3, the width and height of the shadow are set to 3 pixels.
Requirements
Header: afxdrawmanager.h