MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / KillChildViews

Method KillChildViews

editor/editorView.cpp:573–581  ·  view source on GitHub ↗

Since this code is shared by a couple of functions, and is critical that the code is the same for both functions, I place all the code here. */

Source from the content-addressed store, hash-verified

571 is the same for both functions, I place all the code here.
572*/
573void CEditorView::KillChildViews() {
574 if (m_grwndCreated) {
575 if (theApp.wireframe_view)
576 m_grwndWireframe.DestroyWindow();
577 if (theApp.textured_view)
578 m_grwndTexture.DestroyWindow();
579 m_grwndCreated = FALSE;
580 }
581}
582
583void CEditorView::CreateChildViews() {
584 RECT view_rect, wire_rect, texture_rect;

Callers

nothing calls this directly

Calls 1

DestroyWindowMethod · 0.45

Tested by

no test coverage detected