Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

MaximizeCommandWindow - Open Automation server window

Synopsis

MATLAB Client

h.MaximizeCommandWindow
MaximizeCommandWindow(h)

IDL Method Signature

HRESULT MaximizeCommandWindow(void)

Microsoft Visual Basic Client

MaximizeCommandWindow

Description

h.MaximizeCommandWindow displays the window for the server attached to handle h, and makes it the currently active window on the desktop.

MaximizeCommandWindow(h) is an alternate syntax.

MaximizeCommandWindow restores the window to the size it had at the time it was minimized, not to the maximum size on the desktop. If the server window was not previously in a minimized state, MaximizeCommandWindow 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 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

MinimizeCommandWindow

How To

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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