Results 1 to 2 of 2

Thread: paint a circle on top of any component

  1. #1

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604

    paint a circle on top of any component

    Hi.
    I want to paint a filled-in circle on the form that will appear over top of anything else. So, if I paint a circle at 300,300 with radius of 100, it will appear as a whole circle, regardless of what components are also located at that point on the screen. Also, how can I fill in that circle?


    I guess twoways:
    1) some sort of desktop window paintcircle technique
    2) a pre-drawn circle bitmap that is bitblt copied to the form

    I don't know which is right or how to do either.

    Does anybody else here?
    Thanks
    Wengang
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Using GetDC(GetDesktopWindow), you can use a Circle API call to draw directly onto the screen.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width