Results 1 to 2 of 2

Thread: Working with shapes

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    85

    Question Working with shapes

    Morning all
    I am having a problem using api with shapes. I have a number of positions on my page, that will change from time to time, and i need my picturebox to shape to those specific points.? anyone know how to do that??

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Look into the CreatePolygonRgn and SetWindowRgn API functions. Don't forget to delete the regions you create with DeleteObject, otherwise your program will be leaking GDI objects.

    Please note that the CreatePolygonRgn function uses pixel dimensions and not twips.

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