ITextHost::TxGetDC method

Requests the device context for the text host window.

Syntax


HDC TxGetDC();

Parameters

This method has no parameters.

Return value

Type: HDC

If the method succeeds, return the handle of the device context for the client area of the text host window.

If the method fails, return NULL. For more information on COM error codes, see Error Handling in COM.

Remarks

This method is only valid when the control is in-place active; calls while the control is inactive may fail.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextHost
Conceptual
Windowless Rich Edit Controls
Other Resources
GetDC

 

 

Show: