]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/utilsgui.cpp
Added generic drag image source file
[wxWidgets.git] / src / msw / utilsgui.cpp
index 00cb07b33b5c69ea36ff51e298a9f9ab3092bb08..9b14ea38ac413831d2b49a05e37cb75594280e83 100644 (file)
@@ -443,4 +443,18 @@ extern void HIMETRICToPixel(LONG *x, LONG *y)
     *y /= (iHeightMM * 100);
 }
 
+void wxDrawLine(HDC hdc, int x1, int y1, int x2, int y2)
+{
+#ifdef __WXWINCE__
+    POINT points[2];
+    points[0].x = x1;
+    points[0].y = y1;
+    points[1].x = x2;
+    points[1].y = y2;
+    Polyline(hdc, points, 2);
+#else
+    MoveToEx(hdc, x1, y1, NULL); LineTo((HDC) hdc, x2, y2);
+#endif
+}
+