hwnd_topmost

About this tag
The hwnd_topmost tag covers discussions about the Windows API constant HWND_TOPMOST, used with SetWindowPos to keep a window always on top. A common issue is that applying HWND_TOPMOST to a second window can deactivate it on the first, as Windows typically allows only one topmost window at a time. Users seek workarounds to maintain multiple topmost windows simultaneously, often for multi-monitor setups. Topics include API usage, window z-order management, and practical solutions for fullscreen applications.
  1. E

    Windows 10 Need to use HWND_TOPMOST for two windows, API

    I have a project where i have two windows that i fullscreen on my two monitors. i have successfully been able to make one of these windows always on top by using: SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW); But when i try to set my second window on...
Back
Top