当前位置: 首页>>代码示例>>C++>>正文


C++ DisposeWindow函数代码示例

本文整理汇总了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;
}
开发者ID:ullerrm,项目名称:frogg,代码行数:8,代码来源:AboutWin.cpp

示例2: wxDELETE

wxScreenDCImpl::~wxScreenDCImpl()
{
    wxDELETE(m_graphicContext);
#if wxOSX_USE_COCOA_OR_IPHONE
#else
    DisposeWindow((WindowRef) m_overlayWindow );
#endif
}
开发者ID:CyberIntelMafia,项目名称:clamav-devel,代码行数:8,代码来源:dcscreen.cpp

示例3: DisposeWindow

wxScreenDCImpl::~wxScreenDCImpl()
{
    delete m_graphicContext;
    m_graphicContext = NULL;
#if wxOSX_USE_COCOA_OR_IPHONE
#else
    DisposeWindow((WindowRef) m_overlayWindow );
#endif
}
开发者ID:jonntd,项目名称:dynamica,代码行数:9,代码来源:dcscreen.cpp

示例4: RemoveEventHandler

TabbedWindow::~TabbedWindow( void )
{
    
    // remove the event handler
    RemoveEventHandler( fHandler );
    
    // dispose of the window
    DisposeWindow( fWindowRef );
}
开发者ID:fruitsamples,项目名称:InkSample,代码行数:9,代码来源:TabbedWindow.cpp

示例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);
}
开发者ID:LapsedAcademicsInc,项目名称:putty,代码行数:9,代码来源:macdlg.c

示例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);
}
开发者ID:zenmumbler,项目名称:GrayBoxZ,代码行数:18,代码来源:NCarbonWindowManager.cpp

示例7: DisposeWindow

pxError pxWindow::term()
{
	if (mWindowRef)
	{
		DisposeWindow(mWindowRef);
		mWindowRef = NULL;
	}
    return PX_OK;
}
开发者ID:dtbinh,项目名称:pxcore,代码行数:9,代码来源:pxWindowNative.cpp

示例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);
}
开发者ID:LarBob,项目名称:executor,代码行数:10,代码来源:window.c

示例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);
    }
}
开发者ID:davidreynolds,项目名称:Atlas2D,代码行数:10,代码来源:apple.c

示例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);
}
开发者ID:prophile,项目名称:dim3,代码行数:10,代码来源:palette_scenery.c

示例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);
    }
}
开发者ID:rdebath,项目名称:sgt,代码行数:10,代码来源:macevlog.c

示例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);
}
开发者ID:prophile,项目名称:dim3,代码行数:55,代码来源:dialog_preference.c

示例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;
    }
开发者ID:JoeyZh,项目名称:ogre-android,代码行数:56,代码来源:OgreOSXCarbonWindow.cpp

示例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);

}
开发者ID:fruitsamples,项目名称:Carbon_GLSnapshot,代码行数:20,代码来源:WindowControl.c

示例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
开发者ID:fruitsamples,项目名称:TypeServicesForUnicode,代码行数:23,代码来源:main.c


注:本文中的DisposeWindow函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。