When create an window with WS_EX_LAYERED style, an Window shown invisible.
Maybe window's alpha blend value is 0.
I wonder that it's bug or normal.
It can be shown correcting an alpha blend value.
CLayeredWindow* LW = new CLayeredWindow;
LW->CreateEx(WS_EX_LAYERED, _T("Layered"), 0, WS_CHILD WS_POPUP
WS_CLIPCHILDREN
WS_CLIPSIBLINGS
WS_THICKFRAME,
rect, this, 0,0);
LW->ShowWindow(SW_SHOW);
LW->SetLayeredWindowAttributes(0, 100, LWA_ALPHA);
No comments:
Post a Comment