SetWindowLongPtr, , GetWindowLongPtr, ?
Windows Server 2003 Windows 7
POINT ptScreen = pt;
ClientToScreen(pwnd->hdr.hwnd, &ptScreen);
HWND hctl = WindowFromPoint(ptScreen);
if (IsWindow(hctl))
{
LONG lExStyle = GetWindowLong(hctl, GWL_EXSTYLE);
lExStyle ^= WS_EX_LAYERED;
SetWindowLong(hctl, GWL_EXSTYLE, lExStyle);
SetLayeredWindowAttributes(hctl, 0,
(lExStyle & WS_EX_LAYERED) ? (255 * 50) / 100 : 255,
LWA_ALPHA);
}
}
, WindowFromPoint , , . , , , , - .
( )