初步修复

This commit is contained in:
Cussrro 2024-12-19 09:48:26 +08:00
parent 8fc4357cc6
commit e4714f3f0e
46705 changed files with 12004901 additions and 0 deletions

View file

@ -0,0 +1,33 @@
#include "StdAfx.h"
#include "SubControlBaseView.h"
IMPLEMENT_DYNAMIC(CSubControlBaseView, CDialog)
CSubControlBaseView::CSubControlBaseView(EF_CONTROLTYPE pControlType, UINT nIDTemplate, CWnd* pParentWnd)
: CDialog(nIDTemplate, pParentWnd), m_ControlType(pControlType), m_nIDTemplate(nIDTemplate)
{
ASSERT(0 <= m_ControlType && EV_CTT_CNT > m_ControlType);
}
CSubControlBaseView::~CSubControlBaseView()
{
}
CWndDetachSafe::CWndDetachSafe(CWnd *pWnd, HWND hWnd) : m_Wnd(pWnd)
{
ASSERT(NULL != pWnd);
ASSERT(NULL != hWnd);
pWnd->Attach(hWnd);
}
CWndDetachSafe::~CWndDetachSafe()
{
if (m_Wnd) {
m_Wnd->Detach();
}
}