Hello, a very small portion from my form_resize is:
Code:
hRgn = CreateRoundRectRgn(0, 0, w, h, 9, 9)
This (combined with the rest of the code) makes my form have rounded edges, it defines the areas to round off, and the last two variables (9, 9) define the extremity of the curve.

If I append the following afterwards:
Code:
hRgn = CreateRoundRectRgn(0, 0, 230, 145, 9, 9)
It will make my form 230x145px and then crop the corners to be rounded.

Presently, I only have the first code implemented, but what I would like to do is have a button, image, whatever on my form that has a click() value that will append the second code to form_resize on it's own.

Maybe something like the click object enabling a new function in form_resize which has IF commands to it (If enabled, hRgn = CreateRoundRectRgn(0, 0, 230, 145, 9, 9))

Any ideas how I could do this?

Hopefully you understand what I mean, if not, just ask and I can try to elaborate.

By the way, the purpose for this would be to have a button like "Collapse", allowing users to slim down the appearance of the application, hide extra settings, etc...

David