马上给分!

解决方案 »

  1.   

    看看SetWindowPos这个函数就知道了。
      

  2.   

    SetWindowPos(Form2.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE or SWP_NOMOVE
           or SWP_NOACTIVATE);
      

  3.   

    1.SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOSIZE|NO_MOVE);
    2.SetForegroundWindow( );
      

  4.   

    SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE);
      

  5.   

    http://codeguru.earthweb.com/dialog/TopDlg.shtml
    例子程序
      

  6.   

    1.BOOL SetForegroundWindow(          HWND hWnd
    );2.BOOL SetWindowPos(          HWND hWnd,
        HWND hWndInsertAfter,
        int X,
        int Y,
        int cx,
        int cy,
        UINT uFlags
    );
    hWndInsertAfter :HWND_TOPMOST
    Places the window above all non-topmost windows. The window maintains its topmost position even when it is deactivated.3.BOOL SetWindowPos(
       const CWnd* pWndInsertAfter,
       int x,
       int y,
       int cx,
       int cy,
       UINT nFlags 
    );pWndInsertAfter :wndTopMost   
    Places the window above all nontopmost windows. The window maintains its topmost position even when it is deactivated.