IMDManager.h
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:

DirextX编程

开发平台:

Visual C++

  1. // Copyright (C) 1996, 1998-1999 DXGuide.  All Rights Reserved.
  2. // File: IMDManager.h
  3. #ifndef _IMDMANAGER__H
  4. #define _IMDMANAGER__H
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. const int constMaxKeyBuffSize = 80;
  9. const int constMaxIMDNum = 10;
  10. const int constMaxDupNum = 10;
  11. class CUC5IMD;
  12. class CPackFileManager;
  13. class CIMDManager
  14. {
  15. public:
  16. CIMDManager(void);
  17. virtual ~CIMDManager();
  18. public:
  19. bool AddIMD(LPCTSTR  lpszIMDName,
  20. CPackFileManager*  pPackFileManager = NULL,
  21. BYTE  byteFuncKey = 0xFF);
  22. bool SelectIMD(int  nCurIMD);
  23. bool SelectNextIMD(void);
  24. void SetDispBufLen(WORD  wDispBufLen);
  25. void SetAllowInputHZ(bool  bAllow);
  26. CUC5IMD* GetCurUC5IMD(void) const;
  27. public:
  28. void GenDupRect(void);
  29. public:
  30. bool IsPointInDupWord(POINT  pt, BYTE&  byteIndex);
  31. public:
  32. int m_nCurIMD;
  33. CUC5IMD* m_aPIMD[constMaxIMDNum];
  34. bool m_bEnable;
  35. bool m_bAllowEnable;
  36. char m_pKeyBuf[constMaxKeyBuffSize];
  37. bool m_bSelected;
  38. bool m_bDispDupBuf;
  39. WORD m_wDispBufLen;
  40. RECT m_rcIMDName;
  41. RECT m_rcIMDInput;
  42. RECT m_rcIMDOutput;
  43. RECT m_rcIMDToggle;
  44. RECT m_lprcDupRect[constMaxDupNum];
  45. };
  46. #endif // _IMDMANAGER__H