How can I draw a semi transparent icon in winapi with WM_PAINT ?
I mean i'm using functions like
to draw an Icon in winapi window, but the transparency of the icon image is only fully transparent.Code:HICON hIconPic = LoadImage(_hInstance, MAKEINTRESOURCE(IDI_ICON), IMAGE_ICON, 320, 240, LR_LOADTRANSPARENT); HDC dcIconPic = CreateCompatibleDC(0); HICON hSecondIcon = (HICON)SelectObject(dcIconPic, hIconPic); DrawIconEx(ps.hdc, 0, 0, hIconPic, 0, 0, 0, NULL, DI_NORMAL );
Semi-transparency doesn't work ! The semi transparency shown as white color. Can it be implemented somehow easily?