The SetDC method sets the device context to be used by the
virtual display when updating the window.
Parameters
- hDC
- Handle to the device context. This parameter may be NULL, any
device context that is currently associated with the virtual
display will be removed. Note that the application still has the
responsibility for deleting the device context, otherwise a handle
leak will occur.
Return Value
If the method succeeds, the return value is non-zero. If the
method fails, it returns zero.
Remarks
It is not required that the device context be explicitly set by
the application. By default, the class will use a device context
created using the window attached to the virtual display. If a device
context is specified by the application, it must be released when it
is no longer needed.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csnvtv10.lib
See Also
GetDC,
Update
|