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??
Printable View
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??
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.