How to create shadow effect like in photoshop?
layers in photoshop?
Цитата:
Originally posted by werter1
How to create picture (or control) that drops shadow like
layers in photoshop?
How to create picture (or control) that drops shadow like
layers in photoshop?
You need to draw this shadow manually :)
A Kak?
Цитата:
Originally posted by werter1
A Kak?
A Kak?
Create base class that handles message WM_PAINT, and maybe you ll need WM_NCPAINT. Than subclass it in classes that use this effect.
MSDN:
An application can intercept the WM_NCPAINT message and paint its own custom window frame. The clipping region for a window is always rectangular, even if the shape of the frame is altered.
The wParam value can be passed to GetDCEx as in the following example.
case WM_NCPAINT:
{
HDC hdc;
hdc = GetDCEx(hwnd, (HRGN)wParam, DCX_WINDOW|DCX_INTERSECTRGN);
// Paint into this DC
ReleaseDC(hwnd, hdc);
}
Spasibo ogromnoe!