Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 737 -
------------------------------------------------------------------------------
2.15 Get window display status. <Main>
------------------------------------------------------------------------------
[Name]
win_getstat
[Syntax]
#include <crt.h>
void win_getstat( struct winstat *stat ) ;
struct winstat {
whandle selected ; /* Window handle of the
currently selected window*/
whandle active ; /* Window handle of the
currently active window. */
unsigned int numwin ; /* Number of opened window.
*/
unsigned int winstack[MAX_WIN] ; /* Stacking order of
opened windows. */
} ;
[Arguments]
stat Windows status information.
[Return]
------
[Description]
Gets the current window display status.
The window handle the currently selected window and the currently
active window are stored in each "stat.selected" and "stat.active".
The number of the currently opend windows is stored in "stat.numwin".
The number in "stat.numwin" includes the windows hidden by "win_hide"
function. The stacking order of the all opened windows is stored in
"stat.winstack". The handles of all of the opened windows are stored
like this, the window handle of the top window is stored in
"winstack[0]", the next in "winstack[1]".