DragonNest/Common/MFCUtility/XTCustomPropertyGridItemNumber.cpp

25 lines
918 B
C++
Raw Normal View History

2024-12-19 09:48:26 +08:00
#include "StdAfx.h"
#include "Common/XTPVC80Helpers.h"
#include "PropertyGrid/XTPPropertyGridInplaceEdit.h"
#include "PropertyGrid/XTPPropertyGridInplaceButton.h"
#include "PropertyGrid/XTPPropertyGridInplaceList.h"
#include "PropertyGrid/XTPPropertyGridItem.h"
#include "XTCustomPropertyGridItemNumber.h"
IMPLEMENT_DYNAMIC(CXTCustomPropertyGridItemNumber, CXTPPropertyGridItem)
CXTCustomPropertyGridItemNumber::CXTCustomPropertyGridItemNumber(const CString& strCaption, long nValue, long* pBindNumber )
: CXTPPropertyGridItemNumber( strCaption, nValue, pBindNumber )
{
}
CXTCustomPropertyGridItemNumber::CXTCustomPropertyGridItemNumber(UINT nID, long nValue, long* pBindNumber )
: CXTPPropertyGridItemNumber( nID, nValue, pBindNumber )
{
}
void CXTCustomPropertyGridItemNumber::OnInplaceButtonDown()
{
m_pGrid->GetParent()->GetParent()->SendMessage( UM_PROPERTYGRID_ONCUSTOM_DIALOG, (WPARAM)0, (LPARAM)this );
}