MaximizeCommandWindow - Open server window on Microsoft Windows desktop

Synopsis

MATLAB Client

h.MaximizeCommandWindow
MaximizeCommandWindow(h)
invoke(h, 'MaximizeCommandWindow')

Method Signature

HRESULT MaximizeCommandWindow(void)

Microsoft Visual Basic Client

MaximizeCommandWindow

Description

MaximizeCommandWindow displays the window for the server attached to handle h, and makes it the currently active window on the desktop. If the server window was not in a minimized state to begin with, then MaximizeCommandWindow does nothing.

Remarks

Server function names, like MaximizeCommandWindow, 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

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

  


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