Main Content

MaximizeCommandWindow

Open Automation server window

Synopsis

IDL Method Signature

HRESULT MaximizeCommandWindow(void)

MicrosoftVisual BasicClient

MaximizeCommandWindow

MATLABClient

MaximizeCommandWindow(h)

Description

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

MaximizeCommandWindowrestores 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,MaximizeCommandWindowdoes nothing.

Examples

expand all

This example shows how to minimize and maximize the command window in a MATLAB Automation server. Create an application from the following code.

typeadjustcommandwindow.vb
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

This example shows how to minimize and maximize the command window in a MATLAB Automation server. Create an application from the following code.

typeadjustcommandwindow.vba
Dim Matlab As Object Set 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

Version History

Introduced before R2006a