ITfThreadMgr2::GetFocus method

Returns the document manager that has the input focus.

Syntax


HRESULT GetFocus(
  [out]  ITfDocumentMgr **ppdimFocus
);

Parameters

ppdimFocus [out]

Pointer to a ITfDocumentMgr interface that receives the document manager with the current input focus. Receives NULL if no document manager has the focus.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

S_FALSE

No document manager has focus. ppdimFocus be set to NULL.

E_INVALIDARG

ppdimFocus is invalid.

 

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Msctf.h

IDL

Msctf.idl

See also

ITfThreadMgr2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.