Beispiel #1
0
    // ウインドウ破棄.
    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);
    }
Beispiel #2
0
 void* CSysWindow::GetNativeDisplayHandle(const WindowHandle& handle)
 {
     CWindow* window = (CWindow*)handle;
     return window->GetHDC();
 }