Commit 03febf44 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IHTMLInputTextElement2::selectionStart property implementation.

parent 0fed758e
......@@ -1263,15 +1263,34 @@ static HRESULT WINAPI HTMLInputTextElement2_Invoke(IHTMLInputTextElement2 *iface
static HRESULT WINAPI HTMLInputTextElement2_put_selectionStart(IHTMLInputTextElement2 *iface, LONG v)
{
HTMLInputElement *This = impl_from_IHTMLInputTextElement2(iface);
FIXME("(%p)->(%d)\n", This, v);
return E_NOTIMPL;
nsresult nsres;
TRACE("(%p)->(%d)\n", This, v);
nsres = nsIDOMHTMLInputElement_SetSelectionStart(This->nsinput, v);
if(NS_FAILED(nsres)) {
ERR("SetSelectionStart failed: %08x\n", nsres);
return E_FAIL;
}
return S_OK;
}
static HRESULT WINAPI HTMLInputTextElement2_get_selectionStart(IHTMLInputTextElement2 *iface, LONG *p)
{
HTMLInputElement *This = impl_from_IHTMLInputTextElement2(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL;
INT32 selection_start;
nsresult nsres;
TRACE("(%p)->(%p)\n", This, p);
nsres = nsIDOMHTMLInputElement_GetSelectionStart(This->nsinput, &selection_start);
if(NS_FAILED(nsres)) {
ERR("GetSelectionStart failed: %08x\n", nsres);
return E_FAIL;
}
*p = selection_start;
return S_OK;
}
static HRESULT WINAPI HTMLInputTextElement2_put_selectionEnd(IHTMLInputTextElement2 *iface, LONG v)
......
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