在屏幕上画图之前,Windows程序从GDI获取设备描述表句柄(Device Context Handle),每一次调用一个GDI输出函数时它就会把这个句柄传回给GDI。如果没有有效的设备句柄,则GDI不会做任何的绘图动作。
基于1个网页-相关网页
Functions that get (or create) and release (or destroy) a device context as we saw in earlier chapters, you need a handle to a device context in order to draw.
获得(或创建)和释放(或销毁)关联设备的函数-正如我们在前几章看到的,你需要关联设备的句柄以便绘制。
Releases the handle to the device context.
释放设备上下文的句柄。
Although these functions are considered to be part of GDI, unlike most GDI functions they do not require a handle to a device context.
尽管这些函数被认为是GDI的一部分,但是并不像大多数gdi函数,它们不需要关联设备句柄。
应用推荐