X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..5d8fbe213ca853dba80fb5412fa13bda16f283b5:/src/msw/caret.cpp diff --git a/src/msw/caret.cpp b/src/msw/caret.cpp index f1fd767110..63fc43ac08 100644 --- a/src/msw/caret.cpp +++ b/src/msw/caret.cpp @@ -17,7 +17,7 @@ // headers // --------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "caret.h" #endif @@ -35,6 +35,8 @@ #include "wx/caret.h" +#if wxUSE_CARET + #include "wx/msw/private.h" // --------------------------------------------------------------------------- @@ -189,6 +191,8 @@ void wxCaret::DoSize() m_hasCaret = FALSE; CALL_CARET_API(DestroyCaret, ()); MSWCreateCaret(); - DoMove(); + OnSetFocus(); } } + +#endif