engSetVisible (C)
Show or hide MATLAB engine session
C Syntax
#include "engine.h" int engSetVisible(Engine *ep, bool value);
Arguments
epEngine pointer
valueValue to set the
Visibleproperty to. Setvalueto1to make the engine window visible, or to0to make it invisible.
Returns
Microsoft Windows Operating Systems Only
0 on success, and 1 otherwise.
Description
engSetVisible makes the window for the MATLAB® engine
session, ep, either visible or invisible on the Windows® desktop.
You can use this function to enable or disable user interaction with
the MATLAB engine session.
Examples
The following code opens engine session ep and
disables its visibility.
Engine *ep; bool vis; ep = engOpen(NULL); engSetVisible(ep, 0);
To determine the current visibility setting, use:
engGetVisible(ep, &vis);