Advertisement

arbitrary shaped windows

Started by April 02, 2000 10:48 AM
4 comments, last by Ridcully 24 years, 8 months ago
all of us have seen those nice shaped windows that are not plain rectangular but polygon shaped. i was wondering how to do those... there doesn''t seem to be an api function, so do you need a special library for that? thanks ridcully
To do this you need to create a region and then call setregion on the window you want to change the shape of.

Torval
Advertisement
umm, perhaps i should first have looked into the documentation.
the function i was searching is SetWindowRgn.
doh, there really was an api function...
Make sure you follow the warnings closely... if the variable defining your region is not a global or class member variable that stays resident, you could wind up with some serious problems.

-fel
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
i hate those wonky shaped windows...they just slow down shit...dragging em about takes ages and they look...wrong!
felisandria: hmm, it is not a global variable in my app. but it works and looks really neat
what problems do you mean? well, i''ll prolly make it global for windows'' sake.

Ridcully

This topic is closed to new replies.

Advertisement