我看你那网站链接
创建应该是用这几个函数
Graphics::Graphics(Image*)
说明:Creates a Graphics object that is associated with an Image object.
Graphics::Graphics(HDC)
说明:Creates a Graphics object that is associated with a specified device context.
Graphics::Graphics(HDC,HANDLE)
说明:Creates a Graphics object that is associated with a specified device context and a specified device.
Graphics::Graphics(HWND,BOOL)
说明:Creates a Graphics object that is associated with a specified window.
画线用这个
Graphics::DrawLine(Pen*,Point&,Point&)
说明:The DrawLine method draws a line that connects two points.
Graphics::DrawLine(Pen*,PointF&,Point&)
说明:The DrawLine method draws a line that connects two points.
Graphics::DrawLine(Pen*,REAL,REAL,REAL,REAL)
说明:The DrawLine method draws a line that connects two points.
Graphics::DrawLine(Pen*,INT,INT,INT,INT)
说明:The DrawLine method draws a line that connects two points.
Graphics::DrawLines(Pen*,Point*,INT)
说明:The DrawLines method draws a sequence of connected lines.
Graphics::DrawLines(Pen*,PointF*,INT)
说明:The DrawLines method draws a sequence of connected lines.
楼主自己看看