From: <sv...@op...> - 2024-07-21 21:33:26
|
Author: sagamusix Date: Sun Jul 21 23:33:15 2024 New Revision: 21245 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21245 Log: [Ref] Childfrm: Small cleanup. Modified: trunk/OpenMPT/mptrack/Childfrm.cpp trunk/OpenMPT/mptrack/Childfrm.h Modified: trunk/OpenMPT/mptrack/Childfrm.cpp ============================================================================== --- trunk/OpenMPT/mptrack/Childfrm.cpp Sun Jul 21 20:56:41 2024 (r21244) +++ trunk/OpenMPT/mptrack/Childfrm.cpp Sun Jul 21 23:33:15 2024 (r21245) @@ -1,5 +1,5 @@ /* - * ChildFrm.cpp + * Childfrm.cpp * ------------ * Purpose: Implementation of the MDI document child windows. * Notes : (currently none) @@ -11,7 +11,6 @@ #include "stdafx.h" #include "Childfrm.h" #include "ChannelManagerDlg.h" -#include "Childfrm.h" #include "Ctrl_ins.h" #include "Ctrl_pat.h" #include "Ctrl_smp.h" @@ -62,7 +61,7 @@ { m_bInitialActivation=true; //rewbs.fix3185 m_szCurrentViewClassName[0] = 0; - m_hWndCtrl = m_hWndView = NULL; + m_hWndCtrl = m_hWndView = nullptr; m_bMaxWhenClosed = false; glMdiOpenCount++; } Modified: trunk/OpenMPT/mptrack/Childfrm.h ============================================================================== --- trunk/OpenMPT/mptrack/Childfrm.h Sun Jul 21 20:56:41 2024 (r21244) +++ trunk/OpenMPT/mptrack/Childfrm.h Sun Jul 21 23:33:15 2024 (r21245) @@ -1,7 +1,7 @@ /* * Childfrm.h * ---------- - * Purpose: Implementation of tab interface class. + * Purpose: Implementation of the MDI document child windows. * Notes : (currently none) * Authors: OpenMPT Devs * The OpenMPT source code is released under the BSD license. Read LICENSE for more details. @@ -76,6 +76,7 @@ DECLARE_DYNCREATE(CChildFrame) public: CChildFrame(); + ~CChildFrame() override; protected: static CChildFrame *m_lastActiveFrame; @@ -125,17 +126,13 @@ // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CChildFrame) - public: +public: BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) override; BOOL PreCreateWindow(CREATESTRUCT& cs) override; void ActivateFrame(int nCmdShow) override; void OnUpdateFrameTitle(BOOL bAddToTitle) override; //}}AFX_VIRTUAL -// Implementation -public: - virtual ~CChildFrame(); - // Generated message map functions protected: //{{AFX_MSG(CChildFrame) |