Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnScreenDisplay and rounded corners
#2
Modify OSD_WndProc:

After
Code:
Copy      Help
,else SetWindowPos hWnd 0 rt.left rt.top wid hei SWP_NOACTIVATE|SWP_NOZORDER|SWP_SHOWWINDOW

Insert
Code:
Copy      Help
,SetWindowRgn hWnd CreateRoundRectRgn(1 1 wid-2 hei-2 10 10) 1

If need edge, modify OSD_Paint:

After
Code:
Copy      Help
if(v.flags&1) r.left+3

Insert
Code:
Copy      Help
int r2=CreateRoundRectRgn(0 0 r.right-1 r.bottom-1 10 10)
FrameRgn hdc r2 GetStockObject(BLACK_BRUSH) 1 1
DeleteObject r2
_____________

Example
Code:
Copy      Help
OnScreenDisplay " rounded corners " 0 0 0 0 0 0 5


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)