Dylan Smith : richedit: Implemented ITextServices_TxGetVScroll & TxGetHScroll.

Alexandre Julliard julliard at winehq.org
Thu Jan 22 08:41:41 CST 2009


Module: wine
Branch: master
Commit: 8f7a99fb96df73c694b4bc696593d7286d5b0777
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8f7a99fb96df73c694b4bc696593d7286d5b0777

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Wed Jan 21 10:13:56 2009 -0500

richedit: Implemented ITextServices_TxGetVScroll & TxGetHScroll.

---

 dlls/riched20/txtsrv.c |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/dlls/riched20/txtsrv.c b/dlls/riched20/txtsrv.c
index 2d5ff81..0c3fc55 100644
--- a/dlls/riched20/txtsrv.c
+++ b/dlls/riched20/txtsrv.c
@@ -190,8 +190,12 @@ HRESULT WINAPI fnTextSrv_TxGetHScroll(ITextServices *iface,
 {
    ICOM_THIS_MULTI(ITextServicesImpl, lpVtbl, iface);
 
-   FIXME("%p: STUB\n", This);
-   return E_NOTIMPL;
+   *plMin = This->editor->horz_si.nMin;
+   *plMax = This->editor->horz_si.nMax;
+   *plPos = This->editor->horz_si.nPos;
+   *plPage = This->editor->horz_si.nPage;
+   *pfEnabled = (This->editor->styleFlags & WS_HSCROLL) != 0;
+   return S_OK;
 }
 
 HRESULT WINAPI fnTextSrv_TxGetVScroll(ITextServices *iface,
@@ -203,8 +207,12 @@ HRESULT WINAPI fnTextSrv_TxGetVScroll(ITextServices *iface,
 {
    ICOM_THIS_MULTI(ITextServicesImpl, lpVtbl, iface);
 
-   FIXME("%p: STUB\n", This);
-   return E_NOTIMPL;
+   *plMin = This->editor->vert_si.nMin;
+   *plMax = This->editor->vert_si.nMax;
+   *plPos = This->editor->vert_si.nPos;
+   *plPage = This->editor->vert_si.nPage;
+   *pfEnabled = (This->editor->styleFlags & WS_VSCROLL) != 0;
+   return S_OK;
 }
 
 HRESULT WINAPI fnTextSrv_OnTxSetCursor(ITextServices *iface,




More information about the wine-cvs mailing list