|
-
Aug 2nd, 2008, 06:20 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Need some help with obscure shaped forms API
Hey guys,
The API here: http://www.vbforums.com/showpost.php...27&postcount=5 allows you to do custom shaped forms, namely rectangular with rounded edges. It works well, it's easy and lightweight and I use it often.
When you [uncomment] and apply your needed parameters to one of the hRgn lines, it will round the corners based off of your given values
Code:
hRgn = CreateRoundRectRgn(0, 0, w, h, 9, 9)
Imagine you have a form with rounded corners like this; http://img507.imageshack.us/img507/2479/form1sp2.jpg - A result of something using the code I just pasted above.
My question is, how can I tell it to crop my form like this as well: http://img53.imageshack.us/img53/8035/form2tv5.jpg
My natural assumption was to modify the above code to something like this:
hRgn = CreateRoundRectRgn(0, 120, w, h, 9, 9)
But by doing this it cropped off the top portion. Then it looked like this, http://img132.imageshack.us/img132/9818/form3qo5.jpg
Again, the way I want it to look is like this: http://img53.imageshack.us/img53/8035/form2tv5.jpg
I understand thats not how this API is supposed to work, and it is only doing what it thinks it should by giving me undesired effects, but I was wondering what I can do to modify or add this ability.
Sorry if I didn't explain well, I tried to make it easy to understand with basic pictures and stuff. Any responses would be great and much appreciated!
Thanks!!
David
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|