Home > OS >  SetLayeredWindowAttributes transparent problem, the effect is not ideal, font edge there are white d
SetLayeredWindowAttributes transparent problem, the effect is not ideal, font edge there are white d

Time:09-17

BOOL bret=CreateEx (WS_EX_LAYERED,
AfxRegisterWndClass (CS_HREDRAW, 0, CreateSolidBrush (RGB (255, 255, 255)), NULL),
_T (" MyPopupWindow "), WS_POPUP, CRect (0, 0, 100, 100), the parent, NULL, NULL);
: : SetLayeredWindowAttributes (m_hWnd, RGB (255, 255, 255), a 0, LWA_COLORKEY);

Demand is, add a similar captions in video form, as above, using SetLayeredWindowAttributes set the background transparent, but the effect is not ideal, there are some white dots
Excuse me, how to deal with hard to perfect
?
  • Related