MinimizeCommandWindow - Minimize size of server window

Synopsis

MATLAB® Client

h.MinimizeCommandWindow
MinimizeCommandWindow(h)
invoke(h, 'MinimizeCommandWindow')

Method Signature

HRESULT MinimizeCommandWindow(void)

Microsoft® Visual Basic® Client

MinimizeCommandWindow

Description

MinimizeCommandWindow minimizes the window for the server attached to handle h, and makes it inactive. If the server window was already in a minimized state to begin with, then MinimizeCommandWindow does nothing.

Remarks

Server function names, like MinimizeCommandWindow, are case sensitive when using the first syntax shown.

There is no difference in the operation of the three syntaxes shown above for the MATLAB® client.

Examples

Create a COM server and minimize its window. Then maximize the window and make it the currently active window.

MATLAB® Client

h = actxserver('matlab.application');
h.MinimizeCommandWindow;
% Now return the server window to its former state on 
% the desktop and make it the currently active window.
h.MaximizeCommandWindow;

Visual Basic® .NET Client

Create a COM server and minimize its window.

Dim Matlab As Object

Matlab = CreateObject("matlab.application")
Matlab.MinimizeCommandWindow

'Now return the server window to its former state on 
'the desktop and make it the currently active window.

Matlab.MaximizeCommandWindow

See Also

MaximizeCommandWindow

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS