BLENDFUNCTION bdf;
ZeroMemory(&bdf, sizeof(bdf));
bdf.SourceConstantAlpha = 150; // 指定不透明度(0为完全透明, 255为完全不透明)
SelectObject(hdcMem, hbmp); // 选入要复制的位图
AlphaBlend(hdc, 50, 50, bmp.bmWidth / 2, bmp.bmHeight / 2, hdcMem, 0, 0, bmp.bmWidth, bmp.bmHeight, bdf);
运行效果: