Windows 窗口至顶

1. 将窗口设置为顶层窗口

  ::SetWindowPos(m_hWnd, HWND_TOPMOST,0,0,0,0, SWP_NOSIZE | SWP_NOMOVE);

2.取消窗口顶层

  ::SetWindowPos(m_hWnd, HWND_NOTOPMOST,0,0,0,0, SWP_NOSIZE | SWP_NOMOVE);

原文地址:https://www.cnblogs.com/Mingxx/p/1962042.html