I am trying to figure out how to call a GDI+ Flat Api function, but cannot get anything working.
Here is my code:
Here I am trying to call only one flat function GdipDrawLine.Code:#include <windows.h> #include <objidl.h> #include <gdiplus.h> #include <GdiplusFlat.h> using namespace Gdiplus; #pragma comment (lib,"Gdiplus.lib") VOID OnPaint(HDC hdc) { Graphics graphics(hdc); Pen pen(Color(255, 0, 0, 255)); //graphics.DrawLine(&pen, 0, 0, 200, 100); GdipDrawLine(&graphics, &pen, 0, 0, 200, 0); //Flat Api version }
Any suggestions?




Reply With Quote