chkconf.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/msw/wince/chkconf.h
  3. // Purpose: WinCE-specific configuration options checks
  4. // Author: Vadim Zeitlin
  5. // Modified by:
  6. // Created: 2005-03-07
  7. // Copyright: (c) 2005 Vadim Zeitlin <vadim@wxwindows.org>
  8. // Licence: wxWindows licence
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_MSW_WINCE_CHKCONF_H_
  11. #define _WX_MSW_WINCE_CHKCONF_H_
  12. // ----------------------------------------------------------------------------
  13. // Disable features which don't work or don't make sense under CE
  14. // ----------------------------------------------------------------------------
  15. // please keep the list in alphabetic order except for closely related settings
  16. // (e.g. wxUSE_ENH_METAFILE is put immediately after wxUSE_METAFILE)
  17. #undef wxUSE_DEBUGREPORT
  18. #define wxUSE_DEBUGREPORT 0
  19. #if _WIN32_WCE < 400
  20. // not enough API and lack of ddraw.h
  21. #undef wxUSE_DISPLAY
  22. #define wxUSE_DISPLAY 0
  23. #endif
  24. // eVC doesn't have standard streams
  25. #ifdef __EVC4__
  26. #undef wxUSE_STD_IOSTREAM
  27. #define wxUSE_STD_IOSTREAM 0
  28. #endif
  29. // wxFSVolume currently doesn't compile under CE and it's not clear if it makes
  30. // sense at all there (the drives and their names are fixed on CE systems)
  31. #undef wxUSE_FSVOLUME
  32. #define wxUSE_FSVOLUME 0
  33. // no .INI files API under CE
  34. #undef wxUSE_INICONF
  35. #define wxUSE_INICONF 0
  36. // DDE doesn't exist under WinCE and wxIPC is DDE-based under MSW
  37. #undef wxUSE_IPC
  38. #define wxUSE_IPC 0
  39. // doesn't make sense for CE devices and doesn't compile anyhow
  40. #undef wxUSE_JOYSTICK
  41. #define wxUSE_JOYSTICK 0
  42. // libtiff doesn't build with eVC but is ok with VC8
  43. #ifdef __EVC4__
  44. #undef wxUSE_LIBTIFF
  45. #define wxUSE_LIBTIFF 0
  46. #endif
  47. // no AUI under CE: it's unnecessary and currently doesn't compile
  48. #undef wxUSE_AUI
  49. #define wxUSE_AUI 0
  50. // no MDI under CE
  51. #undef wxUSE_MDI
  52. #define wxUSE_MDI 0
  53. #undef wxUSE_MDI_ARCHITECTURE
  54. #define wxUSE_MDI_ARCHITECTURE 0
  55. // metafiles are not supported neither
  56. #undef wxUSE_METAFILE
  57. #define wxUSE_METAFILE 0
  58. #undef wxUSE_ENH_METAFILE
  59. #define wxUSE_ENH_METAFILE 0
  60. // not sure if this is supported by CE but it doesn't compile currently anyhow
  61. #undef wxUSE_MS_HTML_HELP
  62. #define wxUSE_MS_HTML_HELP 0
  63. // eVC doesn't support SEH
  64. #undef wxUSE_ON_FATAL_EXCEPTION
  65. #define wxUSE_ON_FATAL_EXCEPTION 0
  66. // no owner drawn controls (not sure if this is possible at all but in any case
  67. // the code doesn't currently compile)
  68. #undef wxUSE_OWNER_DRAWN
  69. #define wxUSE_OWNER_DRAWN 0
  70. #undef wxUSE_PRINTING_ARCHITECTURE
  71. #define wxUSE_PRINTING_ARCHITECTURE 0
  72. // regex doesn't build with eVC but is ok with VC8
  73. #ifdef __EVC4__
  74. #undef wxUSE_REGEX
  75. #define wxUSE_REGEX 0
  76. #endif
  77. #undef wxUSE_RICHEDIT
  78. #define wxUSE_RICHEDIT 0
  79. #undef wxUSE_RICHEDIT2
  80. #define wxUSE_RICHEDIT2 0
  81. // Standard SDK lacks a few things, forcefully disable them
  82. #ifdef WCE_PLATFORM_STANDARDSDK
  83. // no shell functions support
  84. #undef wxUSE_STDPATHS
  85. #define wxUSE_STDPATHS 0
  86. #endif // WCE_PLATFORM_STANDARDSDK
  87. // there is no support for balloon taskbar icons
  88. #undef wxUSE_TASKBARICON_BALLOONS
  89. #define wxUSE_TASKBARICON_BALLOONS 0
  90. // not sure if this is supported by eVC but VC8 SDK lacks the tooltips control
  91. // related declarations
  92. #if wxCHECK_VISUALC_VERSION(8)
  93. #undef wxUSE_TOOLTIPS
  94. #define wxUSE_TOOLTIPS 0
  95. #endif
  96. #undef wxUSE_UNICODE_MSLU
  97. #define wxUSE_UNICODE_MSLU 0
  98. #undef wxUSE_UXTHEME
  99. #define wxUSE_UXTHEME 0
  100. #undef wxUSE_WXHTML_HELP
  101. #define wxUSE_WXHTML_HELP 0
  102. // Disable features which don't make sense for MS Smartphones
  103. // (due to pointer device usage, limited controls or dialogs, file system)
  104. #if defined(__SMARTPHONE__)
  105. #undef wxUSE_LISTBOOK
  106. #define wxUSE_LISTBOOK 0
  107. #undef wxUSE_NOTEBOOK
  108. #define wxUSE_NOTEBOOK 0
  109. #undef wxUSE_STATUSBAR
  110. #define wxUSE_STATUSBAR 0
  111. #undef wxUSE_COLOURPICKERCTRL
  112. #define wxUSE_COLOURPICKERCTRL 0
  113. #undef wxUSE_COLOURDLG
  114. #define wxUSE_COLOURDLG 0
  115. #endif // __SMARTPHONE__
  116. #endif // _WX_MSW_WINCE_CHKCONF_H_