The panel_window_toggle function toggles the visible state of a panel window.
Syntax
BOOL panel_window_toggle (UINT32 panel_id)
The panel_window_toggle function has these parameters:
Parameter | Description |
UINT32 panel_id | Specifies the identification number of the window to toggle. The identification number is specified in the Panel.cfg file in the [WindowXX] section by the variable ident. |
Return Values
The panel_window_toggle function has these return values:
Return Value | Description |
0 | Returns 0 if the window specified by panel_id exists and its visibility state is successfully changed. |
Non-zero | Returns a non-zero number if there is an error. |
Example
BOOL window_open_cb(PPIXPOINT relative_point, FLAGS32 mouse_flags)
{
return panel_window_toggle(50);
}