X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..8a7b058372986169b14a7fd40b6f2ba564e0ea6a:/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