DragonNest/Common/MFCUtility/XTCustomPropertyGridItemNumber.cpp
2024-12-20 16:56:44 +08:00

25 lines
No EOL
1.8 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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 );
}