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);

posted @ 2011-02-23 10:47  Mingxx  阅读(420)  评论(0编辑  收藏  举报