DragonNest/Client/EtCutSceneTool/IPropertyDelegate.cpp
Cussrro 47f7895977 Revert "修复编码问题"
This reverts commit 9e69c01767.
2024-12-21 10:04:04 +08:00

25 lines
513 B
C++

#include "stdafx.h"
#include "IPropertyDelegate.h"
IPropertyDelegate::IPropertyDelegate( wxWindow* pParent, int id ) : m_pPropGrid( NULL )
{
m_pPropGrid = new wxPropertyGrid( pParent, id, wxDefaultPosition, wxDefaultSize,
wxPG_BOLD_MODIFIED | wxPG_TOOLTIPS | wxTAB_TRAVERSAL | wxEXPAND );
}
IPropertyDelegate::~IPropertyDelegate(void)
{
m_pPropGrid->Clear();
}
void IPropertyDelegate::Show( bool bShow )
{
m_pPropGrid->Show( bShow );
m_pPropGrid->Enable( true );
if( bShow )
OnShow();
}