News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

ITextDocument.GetRange

Started by jj2007, January 04, 2023, 08:39:07 PM

Previous topic - Next topic

jj2007

ITextDocument.GetRange(Int32, Int32) Method

Pretty clear, but GetRange does not appear in my Tom.h header. Have they changed the TOM interfaces in recent Windows versions?

HSE

Equations in Assembly: SmplMath

jj2007

#2
https://github.com/tpn/winsdk-10/blob/master/Include/10.0.14393.0/winrt/windows.ui.text.h

namespace ABI {
    namespace Windows {
        namespace UI {
            namespace Text {
                interface ITextDocument;
            } /* end namespace */
        } /* end namespace */
    } /* end namespace */
} /* end namespace */

...

#define __x_ABI_CWindows_CUI_CText_CITextDocument_GetText(This,options,value)    \
    ( (This)->lpVtbl -> GetText(This,options,value) )

Tom.h:
#define ITextRange_GetText(This,pbstr)    \
    (This)->lpVtbl -> GetText(This,pbstr)

Same name, different arg list. Congrats, Micros*t :thumbsup:

HSE

#define __x_ABI_CWindows_CUI_CText_CITextDocument_GetRange(This, startPosition, endPosition, result) \
    ((This)->lpVtbl->GetRange(This, startPosition, endPosition, result))
Equations in Assembly: SmplMath

jj2007

Quote from: HSE on January 05, 2023, 01:09:43 AM
#define __x_ABI_CWindows_CUI_CText_CITextDocument_GetRange(This, startPosition, endPosition, result) \
    ((This)->lpVtbl->GetRange(This, startPosition, endPosition, result))

Quote from: jj2007 on January 05, 2023, 12:59:09 AM
#define __x_ABI_CWindows_CUI_CText_CITextDocument_GetText(This,options,value) \
    ( (This)->lpVtbl -> GetText(This,options,value) )


Sure. Now the only problem is to get the Windows RT to work on Windows 7 :cool:

HSE

Quote from: jj2007 on January 05, 2023, 01:13:11 AM
Sure. Now the only problem is to get the Windows RT to work on Windows 7 :cool:

It's Win 10 kit.

Equations in Assembly: SmplMath