Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnScreenDraw
#4
Macro
Code:
Copy      Help
int hwnd=OnScreenDraw(150 30 20 20 &OSD_Proc_Red_Light 0 210)
2

Function OSD_Proc_Red_Light
Code:
Copy      Help
;/
function hwnd hdc cx cy param

int hpen oldpen hbrush oldbrush

;create/select brush and pen, and draw ellipse
hbrush=CreateSolidBrush(0x0000ff); oldbrush=SelectObject(hdc hbrush)
hpen=CreatePen(0 1 0x0000ff); oldpen=SelectObject(hdc hpen)
Ellipse hdc 0 0 cx cy
DeleteObject SelectObject(hdc oldbrush)
DeleteObject SelectObject(hdc oldpen)


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)