BOOL ShowWindow( int nCmdShow ); SW_SHOWMAXIMIZED Activates the window and displays it as a maximized window. SW_SHOWMINIMIZED Activates the window and displays it as an icon.
api functions: ShowWindow The ShowWindow function sets the specified window's show state. BOOL ShowWindow( HWND hWnd, // handle to window int nCmdShow // show state of window );SW_MAXIMIZE Maximizes the specified window. SW_MINIMIZE Minimizes the specified window and activates the next top-level window in the Z order.
SW_SHOWMAXIMIZED Activates the window and displays it as a maximized window.
SW_SHOWMINIMIZED Activates the window and displays it as an icon.
SendMessage(WM_SYSCOMMAND, SC_MINIMIZE, NULL);
ShowWindow(SW_MAXIMIZE);
ShowWindow
The ShowWindow function sets the specified window's show state. BOOL ShowWindow(
HWND hWnd, // handle to window
int nCmdShow // show state of window
);SW_MAXIMIZE Maximizes the specified window.
SW_MINIMIZE Minimizes the specified window and activates the next top-level window in the Z order.
和
Application.Restore;