UIlib.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #ifdef UILIB_STATIC
  2. #define UILIB_API
  3. #else
  4. #if defined(UILIB_EXPORTS)
  5. # if defined(_MSC_VER)
  6. # define UILIB_API __declspec(dllexport)
  7. # else
  8. # define UILIB_API
  9. # endif
  10. #else
  11. # if defined(_MSC_VER)
  12. # define UILIB_API __declspec(dllimport)
  13. # else
  14. # define UILIB_API
  15. # endif
  16. #endif
  17. #endif
  18. #define UILIB_COMDAT __declspec(selectany)
  19. #pragma warning(disable:4505)
  20. #pragma warning(disable:4251)
  21. #pragma warning(disable:4189)
  22. #pragma warning(disable:4121)
  23. #pragma warning(disable:4100)
  24. #if defined _M_IX86
  25. #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
  26. #elif defined _M_IA64
  27. #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  28. #elif defined _M_X64
  29. #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  30. #else
  31. #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
  32. #endif
  33. #include <windows.h>
  34. #include <windowsx.h>
  35. #include <commctrl.h>
  36. #include <stddef.h>
  37. #include <richedit.h>
  38. #include <tchar.h>
  39. #include <assert.h>
  40. #include <crtdbg.h>
  41. #include <malloc.h>
  42. #include <comdef.h>
  43. #include <gdiplus.h>
  44. #include "Utils/Utils.h"
  45. #include "Utils/unzip.h"
  46. #include "Utils/VersionHelpers.h"
  47. #include "Core/UIMarkup.h"
  48. #include "Utils/observer_impl_base.h"
  49. #include "Utils/UIShadow.h"
  50. #include "Utils/UIDelegate.h"
  51. #include "Utils/DragDropImpl.h"
  52. #include "Utils/TrayIcon.h"
  53. #include "Utils/DPI.h"
  54. #include "Core/UIDefine.h"
  55. #include "Core/UIResourceManager.h"
  56. #include "Core/UIManager.h"
  57. #include "Core/UIBase.h"
  58. #include "Core/ControlFactory.h"
  59. #include "Core/UIControl.h"
  60. #include "Core/UIContainer.h"
  61. #include "Core/UIDlgBuilder.h"
  62. #include "Core/UIRender.h"
  63. #include "Utils/WinImplBase.h"
  64. #include "Layout/UIVerticalLayout.h"
  65. #include "Layout/UIHorizontalLayout.h"
  66. #include "Layout/UITileLayout.h"
  67. #include "Layout/UITabLayout.h"
  68. #include "Layout/UIChildLayout.h"
  69. #include "Control/UIList.h"
  70. #include "Control/UICombo.h"
  71. #include "Control/UIScrollBar.h"
  72. #include "Control/UITreeView.h"
  73. #include "Control/UILabel.h"
  74. #include "Control/UIText.h"
  75. #include "Control/UIEdit.h"
  76. #include "Control/UIGifAnim.h"
  77. #include "Control/UIGifAnimEx.h"
  78. #include "Control/UIAnimation.h"
  79. #include "Layout/UIAnimationTabLayout.h"
  80. #include "Control/UIButton.h"
  81. #include "Control/UIOption.h"
  82. #include "Control/UIProgress.h"
  83. #include "Control/UISlider.h"
  84. #include "Control/UIComboBox.h"
  85. #include "Control/UIRichEdit.h"
  86. #include "Control/UIDateTime.h"
  87. #include "Control/UIIPAddress.h"
  88. #include "Control/UIIPAddressEx.h"
  89. #include "Control/UIActiveX.h"
  90. #include "Control/UIWebBrowser.h"
  91. #include "Control/UIFlash.h"
  92. #include "Control/UIMenu.h"
  93. #include "Control/UIGroupBox.h"
  94. #include "Control/UIRollText.h"
  95. #include "Control/UIColorPalette.h"
  96. #include "Control/UIListEx.h"
  97. #include "Control/UIHotKey.h"
  98. #include "Control/UIFadeButton.h"
  99. #include "Control/UIRing.h"
  100. #include "Control/UILoading.h"
  101. #pragma comment( lib, "comctl32.lib" )
  102. #pragma comment( lib, "GdiPlus.lib" )
  103. #pragma comment( lib, "Imm32.lib" )