划线
BOOL LineTo(
HDC hdc, // device context handle
int nXEnd, // x-coordinate of ending point
int nYEnd // y-coordinate of ending point
);
设置划线的起点
BOOL MoveToEx(
HDC hdc, // handle to device context
int X, // x-coordinate of new current position
int Y, // y-coordinate of new current position
LPPOINT lpPoint // 指向下面的结构体的引用类型
);
typedef struct tagPOINT {
LONG x;
LONG y;
} POINT, *PPOINT;
取得窗口的设备上下文,返回值作为上面两个函数的第一个参数,它要求的参数用PB的handle函数的返回值,
HDC GetDC(
HWND hWnd // handle to window
);
声明以上三个函数一个结构体,函数出自Gdi32.dll.