ITextHost::TxReleaseDC method (textserv.h)
Releases the device context obtained by the ITextHost::TxGetDC method.
Syntax
INT TxReleaseDC(
[in] HDC hdc
);
Parameters
[in] hdc
Type: HDC
Handle to the device context to release.
Return value
Type: INT
Returns 1 if hdc was released; otherwise 0.
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | textserv.h |
DLL | Msftedit.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for