a
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user