Hi, is there anything wrong with the code?
The code below is my first attempt of using the Pen tool, no success... Nothing shows on the frame... The brackground of my frame is (0,0,128) RGB...
Anything wrong with this code?
HPEN pen, oldPen;
hwnd = GetFrameWindow();
hdc = BeginPaint(hwnd, &pntS);
pen = CreatePen(PS_SOLID, 2, RGB(255, 255, 0));
oldPen = (HPEN)SelectObject(hdc, pen);
MoveToEx(hdc, 150, 150, NULL);
LineTo(hdc, 150, 200);
[B]calls the function...[/B]