// ウインドウ破棄. void CSysWindow::Destroy(WindowHandle handle) { IZ_ASSERT(handle != IZ_NULL); CWindow* window = (CWindow*)handle; HDC hDC = window->GetHDC(); HWND hWnd = window->GetHWND(); HINSTANCE hInst = window->GetHINSTANCE(); if (hDC) { ::ReleaseDC(hWnd, hDC); } if (hWnd) { DestroyWindow(hWnd); } if (hInst) { UnregisterClass(registerName, hInst); } CWindow::Destroy(window); }
void* CSysWindow::GetNativeDisplayHandle(const WindowHandle& handle) { CWindow* window = (CWindow*)handle; return window->GetHDC(); }