]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/caret.cpp
panther adjustements in size
[wxWidgets.git] / src / msw / caret.cpp
index f1fd767110b7f566514595d60bec92809295f309..63fc43ac088e8f11c4ff5d5361e6fc172aaf182b 100644 (file)
@@ -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