]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/caret.cpp
Added BCC include dir in XRC makefile
[wxWidgets.git] / src / msw / caret.cpp
index f1fd767110b7f566514595d60bec92809295f309..dac2949001366dc5f681ef3731f9f137438071dd 100644 (file)
@@ -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