]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/textctrl.h
apparently unneeded temporary iterator variable removed (patch 1096066)
[wxWidgets.git] / include / wx / textctrl.h
index 582cf855cc5cbe3c189217f3c8ea9a02d9f9e986..652b38e595e20b017d008d0bc47b79550af3caad 100644 (file)
@@ -68,7 +68,12 @@ typedef long wxTextCoord;
 // constants
 // ----------------------------------------------------------------------------
 
-WXDLLEXPORT_DATA(extern const wxChar*) wxTextCtrlNameStr;
+extern WXDLLEXPORT_DATA(const wxChar*) wxTextCtrlNameStr;
+
+// this is intentionally not enum to avoid warning fixes with
+// typecasting from enum type to wxTextCoord
+const wxTextCoord wxOutOfRangeTextCoord = -1;
+const wxTextCoord wxInvalidTextCoord    = -2;
 
 // ----------------------------------------------------------------------------
 // wxTextCtrl style flags
@@ -359,7 +364,7 @@ public:
     virtual void SetInsertionPoint(long pos) = 0;
     virtual void SetInsertionPointEnd() = 0;
     virtual long GetInsertionPoint() const = 0;
-    virtual long GetLastPosition() const = 0;
+    virtual wxTextPos GetLastPosition() const = 0;
 
     virtual void SetSelection(long from, long to) = 0;
     virtual void SelectAll();