Very simple program to toggle if a window is topmost on Windows
You can use MSVC or MINGW (g++ main.cpp -mwindows -o topmost with MINGW)
- Focus the desired window
- Pressed Ctrl + Enter
- To remove the topmost, pressed Ctrl + Enter again
- Running a programming without a console window.
- Registering keyboard hotkeys (RegisterHotKey)
- Getting the current focused window (GetForegroundWindow)
- Changing if a window is topmost (SetWindowPos)