WHWilImage.h
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:3k
源码类别:

模拟服务器

开发平台:

Visual C++

  1. /******************************************************************************************************************
  2.                                                                                                                    
  3. 葛碘疙:
  4. 累己磊:
  5. 累己老:
  6. [老磊][荐沥磊] : 荐沥 郴侩
  7.                                                                                                                    
  8. *******************************************************************************************************************/
  9. #ifndef _WILIMAGEHANDLER_
  10. #define _WILIMAGEHANDLER_
  11. /******************************************************************************************************************
  12. CWilImageData Class Declaration
  13.    廓捞固瘤甫 皋葛府俊 肺爹窍芭唱 颇老 皋葛府甘屈怕肺 盔窍绰 困摹肺 技泼茄促.
  14. *******************************************************************************************************************/
  15. #pragma pack(1)
  16. typedef struct tagWILFILEHEADER
  17. {
  18. CHAR szTmp[40];
  19. INT nImageCount;
  20. }WILFILEHEADER, *LPWILFILEHEADER;
  21. typedef struct tagWILFILEIMAGEINFO
  22. {
  23. SHORT shWidth;
  24. SHORT shHeight;
  25. SHORT shPX;
  26. SHORT shPY;
  27. DWORD dwImageLength;
  28. }WILIMAGEINFO, *LPWILIMAGEINFO;
  29. typedef struct tagWIXFILEIMAGEINFO
  30. {
  31. CHAR szTmp[40];
  32. INT nIndexCount;
  33. INT* pnPosition;
  34. }WIXIMAGEINFO, *LPWIXIMAGEINFO;
  35. typedef struct tagNEWWILFILEHEADER
  36. {
  37. SHORT shComp;
  38. CHAR szTitle[20];
  39. SHORT shVer;
  40. INT nImageCount;
  41. }NEWWILFILEHEADER, *LPNEWWILFILEHEADER;
  42. typedef struct tagNEWWILFILEIMAGEINFO
  43. {
  44. SHORT shWidth;
  45. SHORT shHeight;
  46. SHORT shPX;
  47. SHORT shPY;
  48. CHAR bShadow;
  49. SHORT shShadowPX;
  50. SHORT shShadowPY;
  51. DWORD dwImageLength;
  52. }NEWWILIMAGEINFO, *LPNEWWILIMAGEINFO;
  53. typedef struct tagNEWWIXFILEIMAGEINFO
  54. {
  55. CHAR szTitle[20];
  56. INT nIndexCount;
  57. INT* pnPosition;
  58. }NEWWIXIMAGEINFO, *LPNEWWIXIMAGEINFO;
  59. #pragma pack(8)
  60. class CWHWilImageData
  61. {
  62. private:
  63. protected:
  64. BOOL m_bIsMemMapped; // 皋葛府甘荤侩咯何.
  65. BOOL m_bIsCompressed; // 拘绵咯何.
  66. LPBYTE m_pbStartData; // 单捞鸥狼 矫累林家.(傈眉 单捞鸥康开篮 颇老农扁客 鞍促.)
  67. INT m_nCurrImageIdx; // 泅犁 啊府虐绊 乐绰 牢郸胶.
  68. public:
  69. WIXIMAGEINFO m_stWixImgaeInfo; // Wix 颇老单捞鸥.
  70. NEWWIXIMAGEINFO m_stNewWixImgaeInfo;
  71. LPWILIMAGEINFO m_lpstCurrWilImageInfo; // 泅犁 廓颇老狼 沥焊甫 啊府虐绰 器牢磐.
  72. LPNEWWILIMAGEINFO m_lpstNewCurrWilImageInfo;
  73. BYTE* m_pbCurrImage; // 泅犁 廓颇老狼 捞固瘤甫 啊府虐绰 器牢磐.
  74. TCHAR m_szWilFileName[MAX_PATH];
  75. CWHWilImageData();
  76. ~CWHWilImageData();
  77. BOOL NewLoad(CHAR* szWilFile, BOOL bIsMemMapped = TRUE, BOOL bComp = TRUE);
  78. BOOL NewSetIndex(DWORD dwIndex); // 寇何俊辑 傈崔罐篮 牢郸胶甫 啊瘤绊 泅犁捞固瘤狼 沥焊甫 啊府虐绰 林家甫 Setting茄促.
  79. BOOL Load(CHAR* szWilFile, BOOL bIsMemMapped = TRUE, BOOL bComp = TRUE);
  80. VOID Init();
  81. VOID Destroy();
  82. VOID SetIndex(INT nIndex); // 寇何俊辑 傈崔罐篮 牢郸胶甫 啊瘤绊 泅犁捞固瘤狼 沥焊甫 啊府虐绰 林家甫 Setting茄促.
  83. };
  84. #endif //_WILIMAGEHANDLER_