Skip to Main Content Skip to Search
Product Documentation

MinimizeCommandWindow - Minimize size of Automation server window

Synopsis

MATLAB Client

h.MinimizeCommandWindow
MinimizeCommandWindow(h)

IDL Method Signature

HRESULT MinimizeCommandWindow(void)

Microsoft Visual Basic Client

MinimizeCommandWindow

Description

h.MinimizeCommandWindow minimizes the window for the server attached to handle h, and makes it inactive.

MinimizeCommandWindow(h) is an alternate syntax.

If the server window was already in a minimized state, MinimizeCommandWindow does nothing.

Examples

From a MATLAB client, modify the size of the command window in a MATLAB Automation server:

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;
 

From a Visual Basic .NET client, modify the size of the command window in a MATLAB Automation server:

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

How To

  


» Learn more
» Download free kit
» Get trial software

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