from
Window Manipulation
by Phil Goddard
MEX-file for manipulating (minimize,maximize, etc.) a Windows application.
|
| AlterWindow
|
function AlterWindow
% AlterWindow is a mex file to effect a specified window
%
% first input: a string specifying the window name
%
% second input: a string specifying,...
%
% hide - hides the window and activates another window
% maximize - maximizes the specified window
% minimize - minimizes the window and activates the next
% top-level window
% restore - activates and displays the window
%
% show_default - sets the show state based on the properties
% stored in the CREATEPROCESS function of the
% program that started the application
% show_maximized - activates the window and displays it
% maximized
% show_minimized - activates the window and displays it
% minimized
% show_minnoactive - display the window minimized. Similar
% to show_minimized but doesn't activate
% the window
% show_na - display the window in its current size and
% position. Similar to sho except doesn't activate
% the window
% show_noactive - display the window in it most recent size
% and position. Similar to show_normal, except
% the window is not activated
% show_normal - Activates and displays the window in its
% default size and position if min/maximized.
% bring_to_front - Brings window to the top and makes it the
% active window
%
% Author Phil Goddard
% January 2001
|
|
Contact us at files@mathworks.com