ITextDocument2::GetWindow method

Gets the handle of the window that the Text Object Model (TOM) engine is using to display output.

Syntax


HRESULT GetWindow(
  [out, retval]  __int64 *pHwnd
);

Parameters

pHwnd [out, retval]

Type: __int64*

The handle of the window that the TOM engine is using.

Return value

Type: HRESULT

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

Remarks

A rich edit control doesn't need to own the window that the TOM engine is using. For example, the rich edit control might be windowless.

The Input Method Editor (IME) needs the handle of the window that is receiving keyboard messages. This method retrieves that handle.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

ITextDocument2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.