CDC *pDC = GetDC();
HDC dDlgDC = pDC->m_hDC;
HDC MemDC = CreateCompatibleDC(dDlgDC);
SelectObject(MemDC,hsaveBitmap);
Graphics graphics(MemDC);
SolidBrush solidBrush(Color(100, 0, 0, 0));
graphics.FillRectangle(&solidBrush, 0, 0, width, height);
firsttime = false;
BitBlt(dDlgDC, 0,0,screensize.cx, screensize.cy,MemDC,0,0,SRCCOPY);
想给窗口蒙上一层黑色透明,可是没反应,求高手指点
HDC dDlgDC = pDC->m_hDC;
HDC MemDC = CreateCompatibleDC(dDlgDC);
SelectObject(MemDC,hsaveBitmap);
Graphics graphics(MemDC);
SolidBrush solidBrush(Color(100, 0, 0, 0));
graphics.FillRectangle(&solidBrush, 0, 0, width, height);
firsttime = false;
BitBlt(dDlgDC, 0,0,screensize.cx, screensize.cy,MemDC,0,0,SRCCOPY);
想给窗口蒙上一层黑色透明,可是没反应,求高手指点
第一个100不是透明度么?
是不是bitblt时候出的问题?
不能透明哦。
这个接口都没法做透明吧,我想应该在自己的作图缓冲之中实现两个图层融合才行。