• Advertisement

Archived

This topic is now archived and is closed to further replies.

arbitrary shaped windows

This topic is 6530 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
To do this you need to create a region and then call setregion on the window you want to change the shape of.

Torval

Share this post


Link to post
Share on other sites
umm, perhaps i should first have looked into the documentation.
the function i was searching is SetWindowRgn.
doh, there really was an api function...

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
i hate those wonky shaped windows...they just slow down shit...dragging em about takes ages and they look...wrong!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement