How can i draw a single point in a GUI?

Atm im using *Look below*, but its a line when all i want is a single point with a size and color i can set. Any ideas?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
            PAINTSTRUCT ps;
            HDC         hdc;

            hdc = BeginPaint(hwnd,&ps);
            //Start drawing

            HPEN hPenOld;

            //Red Line
            HPEN hLinePen;
            COLORREF qLineColor;
            qLineColor = RGB(0,0,255);
            hLinePen = CreatePen(PS_SOLID,5,qLineColor);
            hPenOld = (HPEN)SelectObject(hdc,hLinePen);

            MoveToEx(hdc,info.posX,info.posY,NULL);
            LineTo(hdc,info.posX,info.posY);

            SelectObject(hdc,hPenOld);
            DeleteObject(hLinePen);

            EndPaint(hwnd,&ps);
Last edited on
Topic archived. No new replies allowed.