Aric Stewart : msctf: Implement ITfRange::Collapse.

Alexandre Julliard julliard at winehq.org
Wed May 27 09:26:50 CDT 2009


Module: wine
Branch: master
Commit: acbefe5b9e3804987d56cc7077ae2a5299ddd5bc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=acbefe5b9e3804987d56cc7077ae2a5299ddd5bc

Author: Aric Stewart <aric at codeweavers.com>
Date:   Tue May 26 13:30:08 2009 -0500

msctf: Implement ITfRange::Collapse.

---

 dlls/msctf/range.c |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/dlls/msctf/range.c b/dlls/msctf/range.c
index 63181af..dd92551 100644
--- a/dlls/msctf/range.c
+++ b/dlls/msctf/range.c
@@ -201,8 +201,21 @@ static HRESULT WINAPI Range_Collapse(ITfRange *iface, TfEditCookie ec,
         TfAnchor aPos)
 {
     Range *This = (Range *)iface;
-    FIXME("STUB:(%p)\n",This);
-    return E_NOTIMPL;
+    TRACE("(%p) %i %i\n",This,ec,aPos);
+
+    switch (aPos)
+    {
+        case TF_ANCHOR_START:
+            This->anchorEnd = This->anchorStart;
+            break;
+        case TF_ANCHOR_END:
+            This->anchorStart = This->anchorEnd;
+            break;
+        default:
+            return E_INVALIDARG;
+    }
+
+    return S_OK;
 }
 
 static HRESULT WINAPI Range_IsEqualStart(ITfRange *iface, TfEditCookie ec,




More information about the wine-cvs mailing list