X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..42d11c8e66149da692edaddcffc4c67cfa7ca496:/src/msw/caret.cpp diff --git a/src/msw/caret.cpp b/src/msw/caret.cpp index f1fd767110..dac2949001 100644 --- a/src/msw/caret.cpp +++ b/src/msw/caret.cpp @@ -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