Module: wine Branch: master Commit: acbefe5b9e3804987d56cc7077ae2a5299ddd5bc URL: http://source.winehq.org/git/wine.git/?a=commit;h=acbefe5b9e3804987d56cc7077...
Author: Aric Stewart aric@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,