IDeviceContext.ReleaseHdc 方法

定義

釋放 Windows 裝置內容的控制代碼。Releases the handle of a Windows device context.

public:
 void ReleaseHdc();
public void ReleaseHdc ();
abstract member ReleaseHdc : unit -> unit
Public Sub ReleaseHdc ()

備註

GetHdcReleaseHdc 是兩種方法,可讓您取得和釋放 Windows 裝置的控制碼。GetHdc and ReleaseHdc are two methods that allow you to get and release the handle for a Windows-based device. 當您完成 Windows 控制碼的 ReleaseHdc 呼叫時,您應該一律遵循呼叫 GetHdcYou should always follow a call to GetHdc with a call to ReleaseHdc when you are finished with the Windows handle.

適用於