UIlib.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. // Copyright (c) 2010-2011, duilib develop team(www.duilib.com).
  2. // All rights reserved.
  3. //
  4. // Redistribution and use in source and binary forms, with or
  5. // without modification, are permitted provided that the
  6. // following conditions are met.
  7. //
  8. // Redistributions of source code must retain the above copyright
  9. // notice, this list of conditions and the following disclaimer.
  10. //
  11. // Redistributions in binary form must reproduce the above
  12. // copyright notice, this list of conditions and the following
  13. // disclaimer in the documentation and/or other materials
  14. // provided with the distribution.
  15. //
  16. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
  17. // CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
  18. // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  19. // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  20. // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  21. // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  22. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  23. // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  24. // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  25. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  26. // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  27. // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  28. // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. #ifdef UILIB_STATIC
  30. # define UILIB_API
  31. #else
  32. # if defined(UILIB_EXPORTS)
  33. # if defined(_MSC_VER)
  34. # define UILIB_API __declspec(dllexport)
  35. # else
  36. # define UILIB_API
  37. # endif
  38. # else
  39. # if defined(_MSC_VER)
  40. # define UILIB_API __declspec(dllimport)
  41. # else
  42. # define UILIB_API
  43. # endif
  44. # endif
  45. #endif
  46. #define UILIB_COMDAT __declspec(selectany)
  47. #if defined _M_IX86
  48. # pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
  49. #elif defined _M_IA64
  50. # pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  51. #elif defined _M_X64
  52. # pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  53. #else
  54. # pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
  55. #endif
  56. #include <windows.h>
  57. #include <windowsx.h>
  58. #include <commctrl.h>
  59. #include <stddef.h>
  60. #include <richedit.h>
  61. #include <tchar.h>
  62. #include <assert.h>
  63. #include <crtdbg.h>
  64. #include <malloc.h>
  65. #include "Utils/Utils.h"
  66. #include "Utils/UIShadow.h"
  67. #include "Utils/UIShadow.h"
  68. #include "Utils/UIDelegate.h"
  69. #include "Core/UIDefine.h"
  70. #include "Core/UIManager.h"
  71. #include "Core/UIBase.h"
  72. #include "Core/UIControl.h"
  73. #include "Core/UIContainer.h"
  74. #include "Core/UIMarkup.h"
  75. #include "Core/UIDlgBuilder.h"
  76. #include "Core/UIRender.h"
  77. #include "Utils/WinImplBase.h"
  78. #include "Layout/UIVerticalLayout.h"
  79. #include "Layout/UIHorizontalLayout.h"
  80. #include "Layout/UITileLayout.h"
  81. #include "Layout/UITabLayout.h"
  82. #include "Layout/UIChildLayout.h"
  83. #include "Control/UIList.h"
  84. #include "Control/UICombo.h"
  85. #include "Control/UIScrollBar.h"
  86. #include "Control/UITreeView.h"
  87. #include "Control/UILabel.h"
  88. #include "Control/UIText.h"
  89. #include "Control/UIEdit.h"
  90. #include "Control/UIButton.h"
  91. #include "Control/UIOption.h"
  92. #include "Control/UICheckBox.h"
  93. #include "Control/UIProgress.h"
  94. #include "Control/UISlider.h"
  95. #include "Control/UIRichEdit.h"
  96. #include "Control/UIDateTime.h"
  97. #include "Control/UIActiveX.h"
  98. #include "Control/UIWebBrowser.h"
  99. #include "Control/UIGifAnim.h"
  100. //#include "Control/UIFlash.h"
  101. #ifndef DUILIB_LINK_DISABLE
  102. #pragma message("automatic-linking to duilib...")
  103. #ifdef _DEBUG
  104. # ifdef _UNICODE
  105. # pragma comment(lib, "DuiLib_ud.lib")
  106. # else
  107. # pragma comment(lib, "DuiLib_d.lib")
  108. # endif
  109. #else
  110. # ifdef _UNICODE
  111. # pragma comment(lib, "DuiLib_u.lib")
  112. # else
  113. # pragma comment(lib, "DuiLib.lib")
  114. # endif
  115. #endif
  116. #endif