+ if ( m_hasCaret )
+ {
+ wxASSERT_MSG( wxWindow::FindFocus() == GetWindow(),
+ wxT("how did we lose focus?") );
+
+ CALL_CARET_API(SetCaretPos, (m_x, m_y));
+ }
+ //else: we don't have caret right now, nothing to do (this does happen)
+}
+
+
+// ---------------------------------------------------------------------------
+// resizing the caret
+// ---------------------------------------------------------------------------