IMDManager.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1996, 1998-1999 DXGuide. All Rights Reserved.
- // File: IMDManager.h
- #ifndef _IMDMANAGER__H
- #define _IMDMANAGER__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- const int constMaxKeyBuffSize = 80;
- const int constMaxIMDNum = 10;
- const int constMaxDupNum = 10;
- class CUC5IMD;
- class CPackFileManager;
- class CIMDManager
- {
- public:
- CIMDManager(void);
- virtual ~CIMDManager();
- public:
- bool AddIMD(LPCTSTR lpszIMDName,
- CPackFileManager* pPackFileManager = NULL,
- BYTE byteFuncKey = 0xFF);
- bool SelectIMD(int nCurIMD);
- bool SelectNextIMD(void);
- void SetDispBufLen(WORD wDispBufLen);
- void SetAllowInputHZ(bool bAllow);
- CUC5IMD* GetCurUC5IMD(void) const;
- public:
- void GenDupRect(void);
- public:
- bool IsPointInDupWord(POINT pt, BYTE& byteIndex);
- public:
- int m_nCurIMD;
- CUC5IMD* m_aPIMD[constMaxIMDNum];
- bool m_bEnable;
- bool m_bAllowEnable;
- char m_pKeyBuf[constMaxKeyBuffSize];
- bool m_bSelected;
- bool m_bDispDupBuf;
- WORD m_wDispBufLen;
- RECT m_rcIMDName;
- RECT m_rcIMDInput;
- RECT m_rcIMDOutput;
- RECT m_rcIMDToggle;
- RECT m_lprcDupRect[constMaxDupNum];
- };
- #endif // _IMDMANAGER__H