Do we have the flexibility to have user defined shapes for various elements of a GUI created with MFC? For example can I develop a GUI using MFC, with menus similar to this one ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can. There are several ways, the most hardcore one is using SetWindowRgn() – that way you have exact control over the shape of the window, but no per-pixel alpha. You can also use one of the many classes available on CodeProject that does this. You can also have a look at the Ultimate Toolbox which is quite old but may contain something that is enough for your needs. You can also use the SetLayeredWindow() API’s, which give you per-pixel alpha. Start with http://msdn.microsoft.com/en-us/library/ms997507.aspx and then search for the keyword on CodeProject for controls that take away the drudgery for you. Or, look into modern toolkits like Codejock etc. which aren’t free but which may save you lots of time, depending on what and how many effects exactly you want to incorporate into your application.