X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c8b75e9498c5664d5e960b6161bcb3d2857a0d53..ed4eede6c2c16cdb422a39c1b3655956b8f51a1c:/src/stc/PlatWX.cpp diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index b3232e6aa5..af915be587 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -6,6 +6,9 @@ #include +#define Point macPoint // These names are also defined by some mac headers so +#define Style macStyle // change their names, and then undef before we need them + #include #include #include @@ -13,15 +16,14 @@ #include #include +#undef Point +#undef Style + #include "Platform.h" #include "PlatWX.h" #include "wx/stc/stc.h" -#ifdef __WXGTK__ -#include -#endif - Point Point::FromLong(long lpoint) { return Point(lpoint & 0xFFFF, lpoint >> 16); @@ -806,6 +808,14 @@ public: event.Skip(); } +#ifdef __WXMAC__ + virtual bool Show(bool show = true) { + bool rv = wxWindow::Show(show); + GetParent()->Refresh(false); + return rv; + } +#endif + void OnActivate(wxListEvent& WXUNUSED(event)) { doubleClickAction(doubleClickActionData); }