mshtml: Added IHTMLInputTextElement2::selectionStart property implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-06-15 13:47:37 +02:00 committed by Alexandre Julliard
parent 0fed758ef0
commit 03febf448e
1 changed files with 23 additions and 4 deletions

View File

@ -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)