I wrote a game in C++, but it looks very different on different screens. I would like to have an in-game lightness modifier slider to let the user pick the right level of darkness.
I'm not very experienced with the Win32 API, but I tried the following:
window = CreateWindowExA(WS_EX_LAYERED, name, "Title", WS_OVERLAPPEDWINDOW | WS_VISIBLE,
20, 20, 1366, 768, NULL, NULL, hInstance, NULL);
SetLayeredWindowAttributes(window, 0, 127, LWA_ALPHA);
This sets the whole window to be semi-transparent, and I can see my desktop behind the app. If my desktop would be completely black this would be the desired effect.
Is there a way to get solid black or white instead of my desktop "behind" the game?
Or is there a better way to go about this?