/** Clean up memory. * This is called after the X connection is closed. * Note that it is possible for this to be called more than once. */ void Destroy(void) { DestroyBackgrounds(); DestroyBorders(); DestroyClients(); DestroyClock(); DestroyColors(); DestroyCommands(); DestroyCursors(); DestroyDesktops(); #ifndef DISABLE_CONFIRM DestroyDialogs(); #endif DestroyDock(); DestroyFonts(); DestroyGroups(); DestroyHints(); DestroyIcons(); DestroyKeys(); DestroyPager(); DestroyPlacement(); DestroyPopup(); DestroyRootMenu(); DestroyScreens(); DestroySettings(); DestroySwallow(); DestroyTaskBar(); DestroyTray(); DestroyTrayButtons(); }
/*------------------------------------------------------------------------- CreatePopup --------------------------------------------------------------------------*/ void CreatePopup( HAB hab, HWND client, HWND frame ) { HACCEL haccel; if (Popup != NULLHANDLE) DestroyPopup(); Popup = WinLoadMenu( client, NULL, ID_POPUP ); haccel = WinLoadAccelTable( hab, NULLHANDLE, ID_ACCEL ); WinSetAccelTable( hab, haccel, frame ); return; }