Form1.WindowState = 0
Form1.SetFocus

解决方案 »

  1.   

    HWND FindWindow(
      LPCTSTR lpClassName,  // pointer to class name
      LPCTSTR lpWindowName  // pointer to window name
    );
    HWND FindWindowEx(
      HWND hwndParent,      // handle to parent window
      HWND hwndChildAfter,  // handle to a child window
      LPCTSTR lpszClass,    // pointer to class name
      LPCTSTR lpszWindow    // pointer to window name
    );
    BOOL OpenIcon(
      HWND hWnd   // handle to window
    );
    BOOL ShowWindow(
      HWND hWnd,     // handle to window
      int nCmdShow   // show state of window
    );
    BOOL SetWindowPlacement(
      HWND hWnd,                      // handle to window
      CONST WINDOWPLACEMENT *lpwndpl  // address of structure with position data
    );
    BOOL SetForegroundWindow(
      HWND hWnd   // handle to window to bring to foreground
    );够用的了吧