Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATSkin::OpenWindow
CATResult CATSkin::OpenWindow ( const CATString wndName,
CATWindow *&  window,
CATWindow parent = 0,
CATPOINT origin = 0 
)

OpenWindow() opens a window from the skin by name. If the window is already open, then it just returns the handle.

Parameters:
wndName - name of the window to open
window - ref to receive window if opened or already open.
Returns:
CATResult - CAT_SUCCESS on success CAT_STAT_SKIN_WINDOW_ALREADY_OPEN if the window is already open CAT_ERR_SKIN_WINDOW_NOT_FOUND if window not found

Definition at line 391 of file CATSkin.cpp.

References CAT_ERR_SKIN_WINDOW_NOT_FOUND, CAT_STAT_SKIN_WINDOW_ALREADY_OPEN, CAT_SUCCESS, CATRESULT, GetWindowByName(), CATWindow::IsVisible(), and CATWindow::Show().

Referenced by GASPilot::OnCommand(), OnCommand(), and GASPilot::OnStart().


Generated on Mon Feb 11 04:10:52 2008 for Game Accessibility Suite by doxygen 1.5.4