This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

MaximizeCommandWindow

Open Automation server window

Synopsis

IDL Method Signature

HRESULT MaximizeCommandWindow(void)

Microsoft Visual Basic Client

MaximizeCommandWindow

MATLAB Client

MaximizeCommandWindow(h)

Description

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

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

collapse all

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

type adjustcommandwindow.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.

type adjustcommandwindow.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

Introduced before R2006a