Click here to Skip to main content
15,889,899 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
If I want my dialog box in some new shape like triangle or circle or any arbitrary shape ( except square and rectangle) then is it possible or not? If yes then please send me whole code and if no then why no?
And if above question's solution is not possible in MFC then is it possible in any other platform of C++ or not?
Posted
Comments
Maximilien 1-Mar-12 13:21pm    
Don't.
All experiences with irregular shaped dialogs and windows resulted in failures.
Shashwat Mehta 7-Mar-12 5:30am    
http://www.codeproject.com/Articles/5596/Simple-way-to-create-non-rectangular-shaped-dialog

Just check out this link....What is your opinion about this?? will it not run??
Maximilien 7-Mar-12 6:44am    
Technically, yes, it will/can work, but do you really want to inflict that kind of User Interface to your users ?

The short answer is "No", as the standard for a dialog box is set in the Windows class used to create it. However, you could possibly use a standard Window of your own design and modify its shape by Window Skinning[^] to achieve what you want.
 
Share this answer
 
you can use the SetWindowRgn API function for that.. (Also look layered windows for translucent backgrounds. may be interesting for you.)

jkchan
http://cgmath.blogspot.com
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Mar-12 22:43pm    
This is the only correct answer on this page. My 5.
As Richard correctly noted, it should rather be a windows.
--SA
Yes you can make irregular dialog box with different skins.

have a look at below link

http://www.codeguru.com/cpp/w-d/dislog/bitmapsimages/article.php/c4977[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900