dwNewLong = GetWindowLong(hwnd, GWL_EXSTYLE); dwNewLong |= WS_EX_TRANSPARENT |WS_EX_LAYERED; SetWindowLong(hwnd, GWL_EXSTYLE, dwNewLong);