Files
coco df489d5640 a
2026-07-03 16:05:30 +08:00

41 lines
833 B
C++

// StateProcessor.cpp: implementation of the CStateProcessor class.
//
//////////////////////////////////////////////////////////////////////
#include "geomative.h"
#include "StateProcessor.h"
#include "Constant.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CStateProcessor::CStateProcessor()
{
}
CStateProcessor::~CStateProcessor()
{
}
UINT CStateProcessor::ChangeToImageState(UINT uItemState)
{
return INDEXTOSTATEIMAGEMASK(uItemState);
}
UINT CStateProcessor::ChangeToItemState(UINT uImageState)
{
UINT uItemState = 0;
uItemState = uImageState;
uItemState >>= STATE_OFFSET;
return uItemState;
}