http://www.qingfengju.com/article.asp?id=199 第一步 首先配置GDI+设置 第二步 在OnInitDialog添加 USES_CONVERSION; Image* _pImage= Image::FromFile(A2W("c://test.png")); //透明度由PNG图片的Alpha通道决定 ; pDCDst=this->GetDC(); dcSrc.CreateCompatibleDC(pDCDst); bmp.CreateCompatibleBitmap(pDCDst,300,300); dcSrc.SelectObject(&bmp); //用GDI+显示PNG图片 Graphics _Graphics(dcSrc.m_hDC); Point points[] = { Point(0, 0), Point(300, 0), Point(0, 300) }; _Graphics.DrawImage(_pImage,points,3); BLENDFUNCTION _Blend; _Blend.BlendOp=0; _Blend.BlendFlags=0; _Blend.AlphaFormat=1; _Blend.SourceConstantAlpha=254; DWORD dwExStyle=GetWindowLong(m_hWnd,GWL_EXSTYLE); if((dwExStyle&0x80000)!=0x80000)SetWindowLong(m_hWnd,GWL_EXSTYLE,dwExStyle^0x80000); //此时,鼠标会穿透窗体中Alpha值为0的区域 UpdateLayeredWindow(pDCDst,&CPoint(0,0),&CSize(300,300),