ITfContextView::GetWnd method (msctf.h)
The ITfContextView::GetWnd method returns the handle to a window that corresponds to the current document.
HRESULT GetWnd( [out] HWND *phwnd );
Receives a pointer to the handle of the window that corresponds to the current document.
This method can return one of these values.
||The method was successful.|
A document might not have a corresponding window handle if the document is in memory but not displayed on the screen or if the document is a windowless control and the control does not have the window handle of the owner of the windowless controls. Callers cannot assume that the phwnd parameter will receive a non-NULL value even if the method is successful. Callers can also receive a NULL value for the phwnd parameter.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|
|Redistributable||TSF 1.0 on Windows 2000 Professional|