by Jeffrey Katz (4 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)
This code demonstrates using the windows api to create and combine regions. The end result is a cool quick routine to shape buttons, forms, listboxes - anything with a hWnd. This code can be easily modified to create objects of any shape, the round controls in the example are just one implementation.
Inputs
A control
Side Effects
May cause a memory leak if you arnt careful with it.
Download Dynamically Shaped (round) Controls and Forms (6 KB)