使用该函数UpdateLayeredWindow
SetWindowLong(GWL_STYLE, GetWindowLong(GWL_STYLE)|WS_MINIMIZEBOX);
SetWindowLong(GWL_EXSTYLE, GetWindowLong(GWL_EXSTYLE) | WS_EX_LAYERED);
HDC hdc = GetDC();
CRect rc;
GetWindowRect(&rc);
CSize szDst(rc.Width(), rc.Height());
CPoint ptDst(rc.TopLeft());
static POINT ptSrc = {0, 0};
BLENDFUNCTION bf = {
AC_SRC_OVER,
0,
255,
AC_SRC_ALPHA
};
::UpdateLayeredWindow(m_hWnd, hdc, NULL, &szDst,
dcBack_, &ptSrc, 0, &bf, ULW_ALPHA);
ReleaseDC(hdc);