]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/textctrl.h
added Show/HideNativeCaret() (patch 759924)
[wxWidgets.git] / include / wx / msw / textctrl.h
index 7c67cb23e3969980a07faaf94b61b34e01e755fa..76e578e49f3131b125f80ff53482a8240af98af6 100644 (file)
@@ -128,6 +128,11 @@ public:
     virtual void SetSelection(long from, long to);
     virtual void SetEditable(bool editable);
 
+    // Caret handling (Windows only)
+
+    bool ShowNativeCaret(bool show = true);
+    bool HideNativeCaret() { return ShowNativeCaret(false); }
+
     // Implementation from now on
     // --------------------------
 
@@ -184,6 +189,10 @@ public:
     // EDIT control has one already)
     void OnRightClick(wxMouseEvent& event);
 
+    // be sure the caret remains invisible if the user
+    // called HideNativeCaret() before
+    void OnSetFocus(wxFocusEvent& event);
+
 protected:
     // common part of all ctors
     void Init();
@@ -245,6 +254,8 @@ private:
     DECLARE_DYNAMIC_CLASS(wxTextCtrl)
 
     wxMenu* m_privateContextMenu;
+
+    bool m_isNativeCaretShown;
 };
 
 #endif