mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
richedit: Fixed ITextHostImpl return values for tests.
There were several methods that do not have a HRESULT for a return value, so returning E_NOTIMPL is not appropriate. For all the BOOL return values FALSE was returned to indicate the operation was not performed.
This commit is contained in:
parent
2381f23787
commit
62db58545e
@ -134,7 +134,7 @@ static BOOL WINAPI ITextHostImpl_TxShowScrollBar(ITextHost *iface,
|
||||
ITextHostTestImpl *This = (ITextHostTestImpl *)iface;
|
||||
TRACECALL("Call to TxShowScrollBar(%p, fnBar=%d, fShow=%d)\n",
|
||||
This, fnBar, fShow);
|
||||
return E_NOTIMPL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static BOOL WINAPI ITextHostImpl_TxEnableScrollBar(ITextHost *iface,
|
||||
@ -144,7 +144,7 @@ static BOOL WINAPI ITextHostImpl_TxEnableScrollBar(ITextHost *iface,
|
||||
ITextHostTestImpl *This = (ITextHostTestImpl *)iface;
|
||||
TRACECALL("Call to TxEnableScrollBar(%p, fuSBFlags=%d, fuArrowflags=%d)\n",
|
||||
This, fuSBFlags, fuArrowflags);
|
||||
return E_NOTIMPL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static BOOL WINAPI ITextHostImpl_TxSetScrollRange(ITextHost *iface,
|
||||
@ -156,7 +156,7 @@ static BOOL WINAPI ITextHostImpl_TxSetScrollRange(ITextHost *iface,
|
||||
ITextHostTestImpl *This = (ITextHostTestImpl *)iface;
|
||||
TRACECALL("Call to TxSetScrollRange(%p, fnBar=%d, nMinPos=%d, nMaxPos=%d, fRedraw=%d)\n",
|
||||
This, fnBar, nMinPos, nMaxPos, fRedraw);
|
||||
return E_NOTIMPL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static BOOL WINAPI ITextHostImpl_TxSetScrollPos(ITextHost *iface,
|
||||
@ -167,7 +167,7 @@ static BOOL WINAPI ITextHostImpl_TxSetScrollPos(ITextHost *iface,
|
||||
ITextHostTestImpl *This = (ITextHostTestImpl *)iface;
|
||||
TRACECALL("Call to TxSetScrollPos(%p, fnBar=%d, nPos=%d, fRedraw=%d)\n",
|
||||
This, fnBar, nPos, fRedraw);
|
||||
return E_NOTIMPL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void WINAPI ITextHostImpl_TxInvalidateRect(ITextHost *iface,
|
||||
@ -193,7 +193,7 @@ static BOOL WINAPI ITextHostImpl_TxCreateCaret(ITextHost *iface,
|
||||
ITextHostTestImpl *This = (ITextHostTestImpl *)iface;
|
||||
TRACECALL("Call to TxCreateCaret(%p, nbmp=%p, xWidth=%d, yHeight=%d)\n",
|
||||
This, hbmp, xWidth, yHeight);
|
||||
return E_NOTIMPL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static BOOL WINAPI ITextHostImpl_TxShowCaret(ITextHost *iface, BOOL fShow)
|
||||
@ -201,7 +201,7 @@ static BOOL WINAPI ITextHostImpl_TxShowCaret(ITextHost *iface, BOOL fShow)
|
||||
ITextHostTestImpl *This = (ITextHostTestImpl *)iface;
|
||||
TRACECALL("Call to TxShowCaret(%p, fShow=%d)\n",
|
||||
This, fShow);
|
||||
return E_NOTIMPL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static BOOL WINAPI ITextHostImpl_TxSetCaretPos(ITextHost *iface,
|
||||
@ -209,7 +209,7 @@ static BOOL WINAPI ITextHostImpl_TxSetCaretPos(ITextHost *iface,
|
||||
{
|
||||
ITextHostTestImpl *This = (ITextHostTestImpl *)iface;
|
||||
TRACECALL("Call to TxSetCaretPos(%p, x=%d, y=%d)\n", This, x, y);
|
||||
return E_NOTIMPL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static BOOL WINAPI ITextHostImpl_TxSetTimer(ITextHost *iface,
|
||||
@ -218,7 +218,7 @@ static BOOL WINAPI ITextHostImpl_TxSetTimer(ITextHost *iface,
|
||||
ITextHostTestImpl *This = (ITextHostTestImpl *)iface;
|
||||
TRACECALL("Call to TxSetTimer(%p, idTimer=%u, uTimeout=%u)\n",
|
||||
This, idTimer, uTimeout);
|
||||
return E_NOTIMPL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void WINAPI ITextHostImpl_TxKillTimer(ITextHost *iface, UINT idTimer)
|
||||
@ -266,7 +266,7 @@ static BOOL WINAPI ITextHostImpl_TxScreenToClient(ITextHost *iface,
|
||||
{
|
||||
ITextHostTestImpl *This = (ITextHostTestImpl *)iface;
|
||||
TRACECALL("Call to TxScreenToClient(%p, lppt=%p)\n", This, lppt);
|
||||
return E_NOTIMPL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static BOOL WINAPI ITextHostImpl_TxClientToScreen(ITextHost *iface,
|
||||
@ -274,7 +274,7 @@ static BOOL WINAPI ITextHostImpl_TxClientToScreen(ITextHost *iface,
|
||||
{
|
||||
ITextHostTestImpl *This = (ITextHostTestImpl *)iface;
|
||||
TRACECALL("Call to TxClientToScreen(%p, lppt=%p)\n", This, lppt);
|
||||
return E_NOTIMPL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI ITextHostImpl_TxActivate(ITextHost *iface,
|
||||
|
Loading…
Reference in New Issue
Block a user