The native control is available to Unicode applications only so disable its
use in non-Unicode build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65351
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if defined(__WXGTK210__) && !defined(__WXUNIVERSAL__)
#include "wx/gtk/hyperlink.h"
-#elif defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
+// Note that the native control is only available in Unicode version under MSW.
+#elif defined(__WXMSW__) && wxUSE_UNICODE && !defined(__WXUNIVERSAL__)
#include "wx/msw/hyperlink.h"
#else
#include "wx/generic/hyperlink.h"
#pragma hdrstop
#endif
-#if wxUSE_HYPERLINKCTRL
+#if wxUSE_HYPERLINKCTRL && wxUSE_UNICODE
#include "wx/hyperlink.h"
return wxGenericHyperlinkCtrl::MSWOnNotify(idCtrl, lParam, result);
}
-#endif // wxUSE_HYPERLINKCTRL
+#endif // wxUSE_HYPERLINKCTRL && wxUSE_UNICODE