Question: how to use UpdateLayeredWindow function with LICE?
Asked by ruchira (61.245.172.x) on February 3 2012, 3:44pm
Reply on February 6 2012, 4:59am (edited at February 6 2012, 5:01am):
LICE_SysBitmap a; // draw there
int alpha=255;
HDC dc = a.getDC();
RECT r;
GetWindowRect(hwnd, &r);
SIZE rs = {r.right-r.left, r.bottom-r.top};
BLENDFUNCTION blendPixelFunction= { AC_SRC_OVER, 0, alpha, AC_SRC_ALPHA };
POINT psrc ={0,0};
UpdateLayeredWindow(hwnd, GetDC(NULL), (LPPOINT)&r, &rs, dc, &psrc, 0, &blendPixelFunction, ULW_ALPHA);
(this assumes you have a window with no titlebar etc, like our splash screen...)
Comment: