Also, wenn du MFC verwendest:
Da gibt es eine Member-Funktion der Klassen CWnd und CWindow
->BOOL ShowWindow(int nCmdShow);
Übergeben kannst du die Werte:
SW_HIDE Hides this window and passes activation to another window.
SW_MINIMIZE Minimizes the window and activates the top-level window in the system’s list.
SW_RESTORE Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position.
SW_SHOW Activates the window and displays it in its current size and position.
SW_SHOWMAXIMIZED Activates the window and displays it as a maximized window.
SW_SHOWMINIMIZED Activates the window and displays it as an icon.
SW_SHOWMINNOACTIVE Displays the window as an icon. The window that is currently active remains active.
SW_SHOWNA Displays the window in its current state. The window that is currently active remains active.
SW_SHOWNOACTIVATE Displays the window in its most recent size and position. The window that is currently active remains active.
SW_SHOWNORMAL Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position.
(aus MSDN rauskopiert)
Dürfte soweit verständlich sein.
Wenn du MFC nicht verwendest:
Aus der Windows User Api
BOOL ShowWindow(
HWND hWnd, // handle to window
int nCmdShow // show state of window
);
Für int nCmdShow kannst du wieder die oben angegeben Konstanten übergeben:smile:
Ich hoffe ich konnte helfen!
MfG
DDR-RAM