Win32Window::~Win32Window() { if(m_hWnd) { DestroyWindow(m_hWnd); } unregisterWindowClass(); }
/*-------------------------------------- * Function: exitGraphics() *------------------------------------*/ void exitGraphics(void) { if (!window) return; // @To-do: destroyWindow(); unregisterWindowClass(); free(window); window = NULL; }
void uiUninit(void) { uninitMenus(); CoUninitialize(); uninitDialogHelper(); if (DeleteObject(hollowBrush) == 0) logLastError("error freeing hollow brush in uiUninit()"); if (SetConsoleCtrlHandler(consoleCtrlHandler, FALSE) == 0) logLastError("error unregistering console end session handler in uiUninit()"); uninitContainer(); if (DeleteObject(hMessageFont) == 0) logLastError("error deleting control font in uiUninit()"); unregisterWindowClass(); // no need to delete the default icon or cursor; see http://stackoverflow.com/questions/30603077/ uninitUtilWindow(); uninitResizes(); uninitTypes(); uninitAlloc(); }
void uiUninit(void) { uninitMenus(); unregisterD2DScratchClass(); unregisterMessageFilter(); unregisterArea(); uninitDrawText(); uninitDraw(); CoUninitialize(); if (DeleteObject(hollowBrush) == 0) logLastError(L"error freeing hollow brush"); uninitContainer(); if (DeleteObject(hMessageFont) == 0) logLastError(L"error deleting control font"); unregisterWindowClass(); // no need to delete the default icon or cursor; see http://stackoverflow.com/questions/30603077/ uninitUtilWindow(); uninitAlloc(); }
Engine_Win::~Engine_Win() { delete m_pWindow; unregisterWindowClass(); }