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