GDI 是处理函数,DC是被处理的对象BOOL TextOut( HDC hdc, // handle to DC int nXStart, // x-coordinate of starting position int nYStart, // y-coordinate of starting position LPCTSTR lpString, // character string int cbString // number of characters );这个函数需要一个DC的句柄做为参数hdc
HDC hdc, // handle to DC
int nXStart, // x-coordinate of starting position
int nYStart, // y-coordinate of starting position
LPCTSTR lpString, // character string
int cbString // number of characters
);这个函数需要一个DC的句柄做为参数hdc
GDI使用一简单的机制保证在窗口中画图的各程序遵循这些规则。这种机制就是设备描述表(DC)
DC是GDI函数操作的对象