SkinUI.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #ifndef SKINUI_HEAD_FILE
  2. #define SKINUI_HEAD_FILE
  3. //////////////////////////////////////////////////////////////////////////
  4. //系统头文件
  5. #include <GdiPlus.h>
  6. #include <Shlwapi.h>
  7. #include <afxwin.h>
  8. #include <atlimage.h>
  9. #include <vector>
  10. #include <map>
  11. using namespace Gdiplus;
  12. using namespace std;
  13. //FALSH 定义
  14. #import "Flash.ocx" named_guids
  15. //////////////////////////////////////////////////////////////////////////
  16. //导出定义
  17. #ifndef SKINUI_CLASS
  18. #ifdef SKINUI_DLL
  19. #define SKINUI_CLASS _declspec(dllexport)
  20. #else
  21. #define SKINUI_CLASS _declspec(dllimport)
  22. #endif
  23. #endif
  24. //模块定义
  25. #ifdef _DEBUG
  26. #ifdef _UNICODE
  27. #define SKINUI_DLL_NAME TEXT("SkinUI_ud.dll") //组件 DLL 名字
  28. #else
  29. #define SKINUI_DLL_NAME TEXT("SkinUI_d.dll") //组件 DLL 名字
  30. #endif
  31. #else
  32. #ifdef _UNICODE
  33. #define SKINUI_DLL_NAME TEXT("SkinUI_u.dll") //组件 DLL 名字
  34. #else
  35. #define SKINUI_DLL_NAME TEXT("SkinUI.dll") //组件 DLL 名字
  36. #endif
  37. #endif
  38. //////////////////////////////////////////////////////////////////////////
  39. interface IFlashContrlSink
  40. {
  41. public:
  42. //
  43. virtual void OnDraw(CDC*pDC,int nWidth,int nHeight)=NULL;
  44. };
  45. //////////////////////////////////////////////////////////////////////////
  46. #define ON_RBN_DBLCLK(id, memberFxn) \
  47. ON_CONTROL(BN_CLICKED, id, memberFxn)
  48. #define WM_EDIT_CLICK WM_USER+0x50
  49. #define CHECK_IMAGE(image) ((image != NULL) && (!image->IsNull()))
  50. #define CHECK_HWND(pWnd) ((pWnd != NULL) && (!pWnd->GetSafeHwnd()))
  51. //////////////////////////////////////////////////////////////////////////
  52. //ListBox Item
  53. struct tagItemStruct
  54. {
  55. UINT itemID;
  56. UINT itemWidth;
  57. UINT itemHeight;
  58. };
  59. //位置定位
  60. enum
  61. {
  62. en_LTop,
  63. en_RTop,
  64. en_LBottom,
  65. en_RBottom,
  66. en_Center
  67. };
  68. struct tagPositionData
  69. {
  70. int nFixedPostion[2];
  71. CPoint ptPosition;
  72. CSize szSize;
  73. };
  74. //导出类头文件
  75. //////////////////////////////////////////////////////////////////////////
  76. //平台头文件
  77. #include "Macro.h"
  78. #include "Function.h"
  79. #include "MemoryDC.h"
  80. #include "ImageEx.h"
  81. #include "RenderManager.h"
  82. #include "GifImage.h"
  83. #include "BuildDialog.h"
  84. #ifndef SKINUI_DLL
  85. #include "ISkinControl.h"
  86. #include "XmlManager.h"
  87. #include "SkinButton.h"
  88. #include "SkinComboBox.h"
  89. #include "SkinDialog.h"
  90. #include "SkinEdit.h"
  91. #include "SkinListBox.h"
  92. #include "SkinSliderCtrl.h"
  93. #include "SkinProgressCtrl.h"
  94. #include "SkinListCtrl.h"
  95. #include "SkinTreeCtrl.h"
  96. #include "SkinTabCtrl.h"
  97. #include "SkinRichEdit.h"
  98. #include "SkinMenu.h"
  99. #include "FlashControl.h"
  100. #include "SkinToolBar.h"
  101. #endif
  102. //////////////////////////////////////////////////////////////////////////
  103. #endif