本文整理汇总了C++中DisposeWindow函数的典型用法代码示例。如果您正苦于以下问题:C++ DisposeWindow函数的具体用法?C++ DisposeWindow怎么用?C++ DisposeWindow使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DisposeWindow函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: unloadAboutWin
bool unloadAboutWin()
{
HideWindow(g_refAboutWin);
RemoveEventHandler(g_refAboutHdlr);
DisposeWindow(g_refAboutWin);
DisposeEventHandlerUPP(g_lpfnAboutProc);
return true;
}
示例2: wxDELETE
wxScreenDCImpl::~wxScreenDCImpl()
{
wxDELETE(m_graphicContext);
#if wxOSX_USE_COCOA_OR_IPHONE
#else
DisposeWindow((WindowRef) m_overlayWindow );
#endif
}
示例3: DisposeWindow
wxScreenDCImpl::~wxScreenDCImpl()
{
delete m_graphicContext;
m_graphicContext = NULL;
#if wxOSX_USE_COCOA_OR_IPHONE
#else
DisposeWindow((WindowRef) m_overlayWindow );
#endif
}
示例4: RemoveEventHandler
TabbedWindow::~TabbedWindow( void )
{
// remove the event handler
RemoveEventHandler( fHandler );
// dispose of the window
DisposeWindow( fWindowRef );
}
示例5: mac_closedlg
static void mac_closedlg(WindowPtr window)
{
Session *s = mac_windowsession(window);
macctrl_close(window);
DisposeWindow(window);
if (s->window == NULL)
sfree(s);
}
示例6: GetWRefCon
void NCarbonWindowManager::CloseMacWindow(WindowRef aWind)
{
NWindow *nWind = NULL;
NUInt32 wRef = GetWRefCon(aWind);
if(NObject::CheckValidNObject(wRef))
nWind = (NWindow*)wRef;
if(nWind)
{
if(nWind->GetImplementation()->CloseRequest())
{
delete nWind;
DisposeWindow(aWind);
}
}
else
DisposeWindow(aWind);
}
示例7: DisposeWindow
pxError pxWindow::term()
{
if (mWindowRef)
{
DisposeWindow(mWindowRef);
mWindowRef = NULL;
}
return PX_OK;
}
示例8: disposedirwindow
void
disposedirwindow (WindowPtr wp)
{
SendBehind (g_hotband, (WindowPtr) 0);
if ((**g_selection)[0] != 0 && (*(**g_selection)[0])->contrlOwner == wp)
(**g_selection)[0] = 0;
DisposHandle ((*(opendirinfo **) ((WindowPeek) wp)->refCon)->path);
DisposeWindow (wp);
showviewmenu (FrontWindow () != g_hotband);
}
示例9: Sys_KillWindow
void Sys_KillWindow(void) {
deleteContext(g_Window.glctx);
g_Window.glctx = 0;
DisposeWindow((WindowPtr)g_Window.window);
g_Window.window = 0;
if (g_Player != NULL) {
free(g_Player);
}
}
示例10: palette_scenery_close
void palette_scenery_close(int *x,int *y)
{
Rect box;
GetWindowBounds(palette_scenery_wind,kWindowGlobalPortRgn,&box);
*x=box.left;
*y=box.top;
DisposeWindow(palette_scenery_wind);
}
示例11: mac_freeeventlog
void mac_freeeventlog(Session *s)
{
if (s->eventlog != NULL)
LDispose(s->eventlog);
if (s->eventlog_window != NULL) {
sfree((WinInfo *)GetWRefCon(s->eventlog_window));
DisposeWindow(s->eventlog_window);
}
}
示例12: dialog_preference_run
void dialog_preference_run(void)
{
EventHandlerUPP event_upp;
EventTypeSpec event_list[]={{kEventClassCommand,kEventProcessCommand}};
// open the dialog
dialog_open(&dialog_preference_wind,"Preferences");
// set controls
dialog_set_text(dialog_preference_wind,kPrefEngineName,0,setup.engine_name);
dialog_set_combo(dialog_preference_wind,kPrefMipMapMode,0,setup.mipmap_mode);
dialog_set_boolean(dialog_preference_wind,kPrefAutoTexture,0,setup.auto_texture);
dialog_set_int(dialog_preference_wind,kPrefDuplicateOffset,0,setup.duplicate_offset);
dialog_set_color(dialog_preference_wind,kPrefBackgroundColor,0,&setup.col.background);
dialog_set_color(dialog_preference_wind,kPrefLineColor,0,&setup.col.mesh_line);
dialog_set_color(dialog_preference_wind,kPrefMeshSelColor,0,&setup.col.mesh_sel);
dialog_set_color(dialog_preference_wind,kPrefPolySelColor,0,&setup.col.poly_sel);
// show window
ShowWindow(dialog_preference_wind);
// install event handler
event_upp=NewEventHandlerUPP(preference_event_proc);
InstallWindowEventHandler(dialog_preference_wind,event_upp,GetEventTypeCount(event_list),event_list,NULL,NULL);
// modal window
dialog_preference_cancel=FALSE;
RunAppModalLoopForWindow(dialog_preference_wind);
// dialog to data
if (!dialog_preference_cancel) {
dialog_get_text(dialog_preference_wind,kPrefEngineName,0,setup.engine_name,256);
setup.mipmap_mode=dialog_get_combo(dialog_preference_wind,kPrefMipMapMode,0);
setup.auto_texture=dialog_get_boolean(dialog_preference_wind,kPrefAutoTexture,0);
setup.duplicate_offset=dialog_get_int(dialog_preference_wind,kPrefDuplicateOffset,0);
dialog_get_color(dialog_preference_wind,kPrefBackgroundColor,0,&setup.col.background);
dialog_get_color(dialog_preference_wind,kPrefLineColor,0,&setup.col.mesh_line);
dialog_get_color(dialog_preference_wind,kPrefMeshSelColor,0,&setup.col.mesh_sel);
dialog_get_color(dialog_preference_wind,kPrefPolySelColor,0,&setup.col.poly_sel);
setup_xml_write();
}
// close window
DisposeWindow(dialog_preference_wind);
}
示例13: destroyCGLFullscreen
//-------------------------------------------------------------------------------------------------//
void OSXCarbonWindow::destroy(void)
{
if(!mCreated)
return;
if(mIsFullScreen)
{
// Handle fullscreen destruction
destroyCGLFullscreen();
}
else
{
// Handle windowed destruction
// Destroy the Ogre context
if(mCGLContext)
{
OGRE_DELETE mCGLContext;
mCGLContext = NULL;
}
if(mCarbonContext)
{
OGRE_DELETE mCarbonContext;
mCarbonContext = NULL;
}
if(mContext)
{
// mContext is a reference to either the AGL or CGL context, already deleted.
// Just clear the variable
mContext = NULL;
}
if(!mIsExternal)
{
// Remove the window from the Window listener
WindowEventUtilities::_removeRenderWindow( this );
// Remove our event handler
if(mEventHandlerRef)
RemoveEventHandler(mEventHandlerRef);
}
if(mAGLContext)
aglDestroyContext(mAGLContext);
if(mWindow)
DisposeWindow(mWindow);
}
mActive = false;
mClosed = true;
mCreated = false;
}
示例14: windowDestroy
void windowDestroy(GLWindow *glw)
{
MenuHandle hMenu;
aglSetDrawable(glw->glCtx, NULL);
aglSetCurrentContext(NULL);
aglDestroyContext(glw->glCtx);
DisposeWindow((WindowPtr)glw->pWin);
glw->pWin = NULL;
if(glw->supportWindow)
DisposeWindow((WindowPtr)glw->supportWindow);
hMenu = GetMenuHandle (kMenuFile);
DeleteMenu (kMenuFile);
DisposeMenu (hMenu);
hMenu = GetMenuHandle (kMenuApple);
DeleteMenu (kMenuApple);
DisposeMenu (hMenu);
}
示例15: Do_CleanUp
/*****************************************************
*
* Do_CleanUp(void)
*
* Purpose: called when we get the quit event, closes all the windows.
*
* Inputs: none
*
* Returns: OSStatus - eventNotHandledErr indicates that the quit process can continue
*/
static OSStatus Do_CleanUp(void)
{
WindowRef windowToDispose, aWindowRef = GetFrontWindowOfClass(kDocumentWindowClass, true);
for ( ; aWindowRef != NULL; )
{
windowToDispose = aWindowRef;
aWindowRef = GetNextWindowOfClass(aWindowRef, kDocumentWindowClass, true);
DisposeWindow(windowToDispose);
}
return eventNotHandledErr;
} // Do_CleanUp