您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ DestroyChildren函数代码示例

51自学网 2021-06-01 20:27:03
  C++
这篇教程C++ DestroyChildren函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中DestroyChildren函数的典型用法代码示例。如果您正苦于以下问题:C++ DestroyChildren函数的具体用法?C++ DestroyChildren怎么用?C++ DestroyChildren使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了DestroyChildren函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: DestroyChildren

void wxTopLevelWindowMotif::PreDestroy(){#ifdef __VMS#pragma message disable codcauunr#endif   if ( (GetWindowStyleFlag() & wxDIALOG_MODAL) != wxDIALOG_MODAL )        wxModelessWindows.DeleteObject(this);#ifdef __VMS#pragma message enable codcauunr#endif    m_icons.m_icons.Empty();    DestroyChildren();    // MessageDialog and FileDialog do not have a client widget    if( GetClientWidget() )    {        XtRemoveEventHandler( (Widget)GetClientWidget(),                              ButtonPressMask | ButtonReleaseMask |                              PointerMotionMask | KeyPressMask,                              False,                              wxTLWEventHandler,                              (XtPointer)this );    }}
开发者ID:BackupTheBerlios,项目名称:wxbeos-svn,代码行数:26,


示例2: DestroyChildren

wxMDIParentFrame::~wxMDIParentFrame(){    DestroyChildren();    // already deleted by DestroyChildren()    m_clientWindow = NULL ;}
开发者ID:beanhome,项目名称:dev,代码行数:7,


示例3: SendDestroyEvent

// DestructorwxWindowMGL::~wxWindowMGL(){    SendDestroyEvent();    if ( gs_mouseCapture == this )        ReleaseMouse();    if (gs_activeFrame == this)    {        gs_activeFrame = NULL;        // activate next frame in Z-order:        if ( m_wnd->prev )        {            wxWindowMGL *win = (wxWindowMGL*)m_wnd->prev->userData;            win->SetFocus();        }        else if ( m_wnd->next )        {            wxWindowMGL *win = (wxWindowMGL*)m_wnd->next->userData;            win->SetFocus();        }    }    if ( gs_focusedWindow == this )        KillFocus();    if ( gs_windowUnderMouse == this )        gs_windowUnderMouse = NULL;    DestroyChildren();    if ( m_wnd )        MGL_wmDestroyWindow(m_wnd);}
开发者ID:esrrhs,项目名称:fuck-music-player,代码行数:35,


示例4: SendDestroyEvent

wxWindowQt::~wxWindowQt(){    SendDestroyEvent();    if ( s_capturedWindow == this )        s_capturedWindow = NULL;    DestroyChildren(); // This also destroys scrollbars    delete m_qtPicture;    delete m_qtPainter;#if wxUSE_ACCEL    m_qtShortcutHandler->deleteLater();#endif    // Delete only if the qt widget was created or assigned to this base class    if (m_qtWindow)    {        wxLogDebug(wxT("wxWindow::~wxWindow %s m_qtWindow=%p"),                   (const char*)GetName(), m_qtWindow);        // Avoid sending further signals (i.e. if deleting the current page)        m_qtWindow->blockSignals(true);        // Reset the pointer to avoid handling pending event and signals        QtStoreWindowPointer( GetHandle(), NULL );        // Delete QWidget when control return to event loop (safer)        m_qtWindow->deleteLater();        m_qtWindow = NULL;    }    else    {        wxLogDebug(wxT("wxWindow::~wxWindow %s m_qtWindow is NULL"),                   (const char*)GetName());    }}
开发者ID:vdm113,项目名称:wxWidgets-ICC-patch,代码行数:35,


示例5: DestroyChildren

wxMDIParentFrame::~wxMDIParentFrame(){    // see comment in ~wxMDIChildFrame#if wxUSE_TOOLBAR    m_frameToolBar = NULL;#endif#if wxUSE_STATUSBAR    m_frameStatusBar = NULL;#endif // wxUSE_STATUSBAR    DestroyChildren();    if (m_windowMenu)    {        delete m_windowMenu;        m_windowMenu = (wxMenu*) NULL;    }    // the MDI frame menubar is not automatically deleted by Windows unlike for    // the normal frames    if ( m_hMenu )    {        ::DestroyMenu((HMENU)m_hMenu);        m_hMenu = (WXHMENU)NULL;    }    if ( m_clientWindow )    {        if ( m_clientWindow->MSWGetOldWndProc() )            m_clientWindow->UnsubclassWin();        m_clientWindow->SetHWND(0);        delete m_clientWindow;    }}
开发者ID:HackLinux,项目名称:chandler-1,代码行数:35,


示例6: SendDestroyEvent

// DestructorwxWindowBeOS::~wxWindowBeOS(){    SendDestroyEvent();    m_isBeingDeleted = TRUE;    DestroyChildren();    m_eventHandler = NULL;}
开发者ID:BackupTheBerlios,项目名称:wxbeos-svn,代码行数:8,


示例7: Refresh

void wxGxDiscConnections::Refresh(void){    if(DestroyChildren())        LoadConnectionsStorage();    else        wxGxXMLConnectionStorage::Refresh();}
开发者ID:sergiosvieira,项目名称:wxgis,代码行数:7,


示例8: SendDestroyEvent

// DestructorwxWindowX11::~wxWindowX11(){    SendDestroyEvent();    if (g_captureWindow == this)        g_captureWindow = NULL;    m_isBeingDeleted = TRUE;    DestroyChildren();    if (m_clientWindow != m_mainWindow)    {        // Destroy the cleint window        Window xwindow = (Window) m_clientWindow;        wxDeleteClientWindowFromTable( xwindow );        XDestroyWindow( wxGlobalDisplay(), xwindow );        m_clientWindow = NULL;    }    // Destroy the window    Window xwindow = (Window) m_mainWindow;    wxDeleteWindowFromTable( xwindow );    XDestroyWindow( wxGlobalDisplay(), xwindow );    m_mainWindow = NULL;}
开发者ID:gitrider,项目名称:wxsj2,代码行数:27,


示例9: DestroyChildren

wxMDIClientWindow::~wxMDIClientWindow(){    // By the time this destructor is called, the child frames will have been    // deleted and removed from the notebook/client window.    DestroyChildren();    m_mainWidget = (WXWidget) 0;}
开发者ID:BackupTheBerlios,项目名称:wxbeos-svn,代码行数:8,


示例10: GetOccupants

	void QuadTreeNode::Merge()	{		if(m_hasChildren)		{			// Place all occupants at lower levels into this node			GetOccupants(m_pOccupants);			DestroyChildren();		}	}
开发者ID:TehPwns,项目名称:LTBL,代码行数:10,


示例11: DestroyChildren

void wxGxDiscConnection::Refresh(void){#ifdef __WXGTK__    m_pWatcher->RemoveAll();#endif	DestroyChildren();    m_bIsChildrenLoaded = false;	LoadChildren();    wxGIS_GXCATALOG_EVENT(ObjectRefreshed);}
开发者ID:Mileslee,项目名称:wxgis,代码行数:10,


示例12: DestroyChildren

	void ImageBrowser::SetImages(const std::vector<std::string> &images)	{		DestroyChildren();		selectionImages.clear();		for (int i = 0; i < images.size(); i++)		{			NewSelectionImage(images[i]);		}	}
开发者ID:SystexPro,项目名称:Monocle-Engine,代码行数:10,


示例13: DestroyChildren

void wxDllWidget::UnloadWidget(){    if ( m_widget )    {        DestroyChildren();        m_widget = NULL;        delete m_lib;        m_lib = NULL;    }}
开发者ID:2015E8007361074,项目名称:wxPython,代码行数:10,


示例14: RemoveChild

wxMDIParentFrame::~wxMDIParentFrame(){    // Make sure we delete the client window last of all    RemoveChild(m_clientWindow);    DestroyChildren();    delete m_clientWindow;    m_clientWindow = NULL;}
开发者ID:BackupTheBerlios,项目名称:wxbeos-svn,代码行数:10,


示例15: SetSizer

void ToolBar::ReCreateButtons(){   // SetSizer(NULL) detaches mHSizer and deletes it.   // Do not use Detach() here, as that attempts to detach mHSizer from itself!   SetSizer( NULL );   // Get rid of any children we may have   DestroyChildren();   // Create the main sizer   wxBoxSizer *ms = new wxBoxSizer( wxHORIZONTAL );   // Create the grabber and add it to the main sizer   mGrabber = new Grabber( this, mType );   ms->Add( mGrabber, 0, wxEXPAND | wxALIGN_LEFT | wxALIGN_TOP | wxRIGHT, 1 );   // Use a box sizer for laying out controls   mHSizer = new wxBoxSizer( wxHORIZONTAL );   ms->Add( mHSizer, 1, wxEXPAND );   // (Re)Establish dock state   SetDocked( GetDock(), false );   // Go add all the rest of the gadgets   Populate();   // Add some space for the resize border   if( IsResizable() )   {      mSpacer = ms->Add( RWIDTH, 1 );   }   // Set the sizer   SetSizerAndFit( ms );   // Recalculate the height to be a multiple of toolbarSingle   const int tbs = toolbarSingle + toolbarGap;   wxSize sz = GetSize();   sz.y = ( ( ( sz.y + tbs ) / tbs ) * tbs ) - 1;   // Set the true AND minimum sizes and do final layout   if(IsResizable())   {      sz.SetWidth(GetMinToolbarWidth());      SetMinSize(sz);      sz.SetWidth(GetInitialWidth());      SetSize(sz);   }   else   {      SetInitialSize(sz);   }   Layout();}
开发者ID:JordanGraves,项目名称:TabMagic,代码行数:54,


示例16: SendDestroyEvent

// DestructorwxWindowDFB::~wxWindowDFB(){    SendDestroyEvent();    if ( gs_mouseCapture == this )        ReleaseMouse();    if ( gs_focusedWindow == this )        DFBKillFocus();    DestroyChildren();}
开发者ID:beanhome,项目名称:dev,代码行数:13,


示例17: DestroyChildren

bool ICtl_ribbon_toolbar::StdExecute(IStdParam& cmd){	if(cmd.extra1=="clear")	{		m_aItems.clear();		DestroyChildren();		}	else if(cmd.extra1=="update")	{		this->Enable(!m_pGroup->flags.get(EvtBase::FLAG_DISABLE));	}	return true;}
开发者ID:hanwd,项目名称:ew_base,代码行数:13,


示例18: DestroyChildren

void QuadTreeNode::Merge(){	// Merge all children into this node	if(hasChildren)	{		for(unsigned int x = 0; x < 2; x++)			for(unsigned int y = 0; y < 2; y++)				children[x][y]->GetOccupants(occupants, this);		DestroyChildren();		hasChildren = false;	}}
开发者ID:pold500,项目名称:battleship,代码行数:13,


示例19: SendDestroyEvent

wxNonOwnedWindow::~wxNonOwnedWindow(){    SendDestroyEvent();    wxNonOwnedWindowImpl::RemoveAssociations(m_nowpeer) ;    DestroyChildren();    wxDELETE(m_nowpeer);    // avoid dangling refs    if ( s_macDeactivateWindow == this )        s_macDeactivateWindow = NULL;}
开发者ID:CustomCardsOnline,项目名称:wxWidgets,代码行数:14,


示例20: SetLabel

wxControl::~wxControl(){    SetLabel(wxEmptyString);    m_isBeingDeleted = true;    DestroyChildren();    uint16_t index;    FormType* form = (FormType*)GetObjectFormIndex(index);    if(form!=NULL && index!=frmInvalidObjectId)    {        FrmRemoveObject((FormType **)&form,index);    }}
开发者ID:BackupTheBerlios,项目名称:wxbeos-svn,代码行数:14,


示例21: DestroyChildren

void               P3DModelEditPanel::HideAll                                      () {  wxBoxSizer      *TopSizer;  TopSizer = (wxBoxSizer*)GetSizer();  TopSizer->Remove(0);  TopSizer->Remove(1);  DestroyChildren();  PlantModelTreeCtrl = NULL; }
开发者ID:Benjamin-L,项目名称:Dinosauria,代码行数:14,


示例22: DestroyChildren

void wxTopLevelWindowMotif::PreDestroy(){    wxModelessWindows.DeleteObject(this);    DestroyChildren();    // MessageDialog and FileDialog do not have a client widget    if( GetClientWidget() )    {        XtRemoveEventHandler( (Widget)GetClientWidget(),                              ButtonPressMask | ButtonReleaseMask |                              PointerMotionMask | KeyPressMask,                              False,                              wxTLWEventHandler,                              (XtPointer)this );    }}
开发者ID:czxxjtu,项目名称:wxPython-1,代码行数:17,


示例23: DestroyChildren

void BrushSizePanel::InvalidateContents() {	if(loaded) {		DestroyChildren();		SetSizer(nullptr);		brushshapeSquareButton =		brushshapeCircleButton =		brushsize0Button =		brushsize1Button =		brushsize2Button =		brushsize4Button =		brushsize6Button =		brushsize8Button =		brushsize11Button = nullptr;		loaded = false;	}}
开发者ID:edubart,项目名称:rme,代码行数:18,


示例24: SendDestroyEvent

wxWindow::~wxWindow(){    SendDestroyEvent();#if wxUSE_SCROLLBAR    // clear pointers to scrollbar before deleting the children: they are    // children and so will be deleted by DestroyChildren() call below and if    // any code using the scrollbars would be called in the process or from    // ~wxWindowBase, the app would crash:    m_scrollbarVert = m_scrollbarHorz = NULL;#endif    // we have to destroy our children before we're destroyed because our    // children suppose that we're of type wxWindow, not just wxWindowNative,    // and so bad things may happen if they're deleted from the base class dtor    // as by then we're not a wxWindow any longer and wxUniv-specific virtual    // functions can't be called    DestroyChildren();}
开发者ID:iokto,项目名称:newton-dynamics,代码行数:19,


示例25: SendDestroyEvent

wxNonOwnedWindow::~wxNonOwnedWindow(){    SendDestroyEvent();    // destroy all children before we destroy the underlying DirectFB window,    // so that if any of them does something with the TLW, it will still work:    DestroyChildren();    // it's safe to delete the underlying DirectFB window now:    wxDELETE(m_toPaint);    if ( !m_dfbwin )        return;    // remove the TLW from DFBWindowID->wxTLW map:    DFBWindowID winid;    if ( m_dfbwin->GetID(&winid) )        gs_dfbWindowsMap.erase(winid);    m_dfbwin->Destroy();    m_dfbwin.Reset();}
开发者ID:beanhome,项目名称:dev,代码行数:22,


示例26: DestroyChildren

 void QuadNode::Merge(){    /*     merge the  children level in to this level      and delete all the children node .     */            if (!_isLeaf)    {                for (int i = 0; i < 4; i++)        {            _children[i]->GetObjectFromChildren(_objlist, this);                    }    }         DestroyChildren();     _isLeaf = true;    }
开发者ID:song1shuai,项目名称:CS587GameEngineDesign,代码行数:23,


示例27: GetMDIParent

wxMDIChildFrame::~wxMDIChildFrame(){    // if we hadn't been created, there is nothing to destroy    if ( !m_hWnd )        return;    GetMDIParent()->RemoveMDIChild(this);    // will be destroyed by DestroyChildren() but reset them before calling it    // to avoid using dangling pointers if a callback comes in the meanwhile#if wxUSE_TOOLBAR    m_frameToolBar = NULL;#endif#if wxUSE_STATUSBAR    m_frameStatusBar = NULL;#endif // wxUSE_STATUSBAR    DestroyChildren();    MDIRemoveWindowMenu(NULL, m_hMenu);    MSWDestroyWindow();}
开发者ID:DumaGit,项目名称:winsparkle,代码行数:23,



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


C++ DestroyCursor函数代码示例
C++ DestroyCaret函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。