-#ifdef __WXMSW__
-#define wxHelpController wxWinHelpController
-#define sm_classwxHelpController sm_classwxWinHelpController
+ #define wxHelpController wxWinceHelpController
+#elif defined(__WXPALMOS__)
+ #include "wx/palmos/help.h"
+
+ #define wxHelpController wxPalmHelpController
+#elif defined(__WXMSW__)
+ #include "wx/msw/helpchm.h"
+
+ #define wxHelpController wxCHMHelpController
+#else // !MSW
+
+#if wxUSE_WXHTML_HELP
+ #include "wx/html/helpctrl.h"
+ #define wxHelpController wxHtmlHelpController