static void unload(Window *window) { layerDestroy(); menuDestroy(); iconsDestroy(); window_destroy(window); window = NULL; }
// Exit the screen window (destroy it) int scrnExit() { // Ensure the window is destroyed DeActivateChat(); if (hScrnWnd) { DestroyWindow(hScrnWnd); hScrnWnd = NULL; } UnregisterClass(szClass, hAppInst); // Unregister the scrn class menuDestroy(); return 0; }