Commit acbefe5b authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

msctf: Implement ITfRange::Collapse.

parent 5c41156a
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment