reman3/Rayman_X/cpa/public/CTL/Others/CTL_TTT.hpp

51 lines
1.0 KiB
C++

/*bbb 13/03/97 tout*/
/* Definitions for the class CMyDocument*/
/*///////////////////////////////////////////*/
#ifndef _CTL_TOOL_TIP_
#define _CTL_TOOL_TIP_
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000*/
#include "ACP_Base.h"
#include "ITF.h"
#include "MEC.h"
#define D_State_Define
#include "IncGAM.h"
#undef D_State_Define
#include "GLI.h"
class CPA_EXPORT tdoTTTData
{
public:
tdoTTTData();
~tdoTTTData();
tdoTTTData &m_roSet(char *_pszModelText, char *_pszInstanceText = NULL);
unsigned int m_uiId(UINT uiNewId = 0) { return uiNewId ? (m_uiRessourceId = uiNewId) : m_uiRessourceId; }
const char *operator [](BOOL bIsAModel);
private:
unsigned int m_uiRessourceId;
const char *m_pszModelText;
const char *m_pszInstanceText;
};
class CPA_EXPORT CTL_ToolTipTextDatabase
{
public:
CTL_ToolTipTextDatabase() {};
~CTL_ToolTipTextDatabase();
/*returns a reference to an id/text association*/
tdoTTTData &operator[](unsigned int uiControlId);
private:
CPA_List<tdoTTTData> m_oDataList;
};
#endif /*_CTL_TOOL_TIP_*/