IShellLink::SetShowCmd method
Sets the show command for a Shell link object. The show command sets the initial show state of the window.
Syntax
HRESULT SetShowCmd(
int iShowCmd
);
Parameters
- iShowCmd
-
Type: int
Command. SetShowCmd accepts one of the following ShowWindow commands.
-
Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
-
Activates the window and displays it as a maximized window.
-
Displays the window in its minimized state, leaving the currently active window as active.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also