Drawing directly on the screen

Windows specific questions.
Post Reply
angros47
Posts: 2321
Joined: Jun 21, 2005 19:04

Drawing directly on the screen

Post by angros47 »

This example should draw a line on the screen, over the windows already displayed

Code: Select all

#include "Windows.bi"

dim as HDC hDC = GetDC(0)

MoveToEx(hdc, 0, 0, NULL)
LineTo(hdc, 1000, 1000)
ReleaseDC(NULL, hdc)

Post Reply