VirtualBox

Ignore:
Timestamp:
Jul 3, 2007 7:58:10 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22572
Message:

Destroy window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/glwindrv.cpp

    r3354 r3374  
    5555{
    5656    VBOXOGLCTX *pClient = (VBOXOGLCTX *)pvUser;
    57 
    58     pClient->hwnd= CreateWindow("VBoxOGL", "VirtualBox OpenGL",
    59                                         WS_CAPTION | WS_POPUPWINDOW | WS_VISIBLE,
    60                                         0, 0, 0, 0,
    61                                         NULL, NULL, 0, NULL);   
    62     Assert(pClient->hwnd);
     57    HWND        hwnd;
     58
     59    hwnd = pClient->hwnd= CreateWindow("VBoxOGL", "VirtualBox OpenGL",
     60                                               WS_CAPTION | WS_POPUPWINDOW | WS_VISIBLE,
     61                                               0, 0, 0, 0,
     62                                        NULL, NULL, 0, NULL);   
     63    Assert(hwnd);
    6364    while(true)
    6465    {
     
    7475        }
    7576    }
     77    DestroyWindow(hwnd);
    7678    return VINF_SUCCESS;
    7779}
     
    132134            DeleteDC(pClient->hdc);
    133135        PostMessage(pClient->hwnd, WM_CLOSE, 0, 0);
     136        pClient->hwnd = 0;
    134137    }
    135138#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette