初步修复
This commit is contained in:
parent
8fc4357cc6
commit
e4714f3f0e
46705 changed files with 12004901 additions and 0 deletions
33
Server/ServiceMonitorEx/Source/SubControlBaseView.cpp
Normal file
33
Server/ServiceMonitorEx/Source/SubControlBaseView.cpp
Normal 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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue