SetWindowPos(hwnd, HWND_TOPMOST, 0,0,0,0, SWP_NOMOVE | SWP_NOSIZE);

解决方案 »

  1.   

    BOOL SetWindowPos(  HWND hWnd,             // handle to window
      HWND hWndInsertAfter,  // placement-order handle
      int X,                 // horizontal position
      int Y,                 // vertical position
      int cx,                // width
      int cy,                // height
      UINT uFlags            // window-positioning flags
    );
    设置hWndInsertAfter的值为HWND_TOPMOST,hWndInsertAfter的值可能为:
    HWND_BOTTOM    
    HWND_NOTOPMOST 
    HWND_TOP 
    HWND_TOPMOST