Custom shaped dialogs
-
I want to learn how to make my own custom shaped dialogs, much like Windows Media Player[^] does, with it's own user-defined edge. I'd search for topics here at CP, but I do not even know what the technique is called, making it hard. I figured it had something to do with transparency, so I search for that keyword, but nothing obvious surfaced. Anyone know a good article I ought to read? I'm just looking for some direction. :) Edit: I'd like something in MFC, if at all possible... and if not possible I'd like to know why? :) : Dean 'Karnatos' Michaud
-
I want to learn how to make my own custom shaped dialogs, much like Windows Media Player[^] does, with it's own user-defined edge. I'd search for topics here at CP, but I do not even know what the technique is called, making it hard. I figured it had something to do with transparency, so I search for that keyword, but nothing obvious surfaced. Anyone know a good article I ought to read? I'm just looking for some direction. :) Edit: I'd like something in MFC, if at all possible... and if not possible I'd like to know why? :) : Dean 'Karnatos' Michaud
Check out this article for a way to get started: http://www.codeproject.com/dialog/message_balloons.asp[^] Remember that MFC is a class library wrapped around the Windows API. AFAIK, Windows doens't natively support dialogs that aren't square, so you have to write custom code to do it, so it is unlikely that this will get into MFC anytime soon. Even a broken clock is right twice a day.
-
Check out this article for a way to get started: http://www.codeproject.com/dialog/message_balloons.asp[^] Remember that MFC is a class library wrapped around the Windows API. AFAIK, Windows doens't natively support dialogs that aren't square, so you have to write custom code to do it, so it is unlikely that this will get into MFC anytime soon. Even a broken clock is right twice a day.
Beautiful... Most appreciated! : Dean 'Karnatos' Michaud
-
Check out this article for a way to get started: http://www.codeproject.com/dialog/message_balloons.asp[^] Remember that MFC is a class library wrapped around the Windows API. AFAIK, Windows doens't natively support dialogs that aren't square, so you have to write custom code to do it, so it is unlikely that this will get into MFC anytime soon. Even a broken clock is right twice a day.
Navin wrote: doens't natively support dialogs that aren't square, It certainly does, check out SetWindowRgn(). --Mike-- "alyson hannigan is so cute it's crazy" -- Googlism Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm
-
I want to learn how to make my own custom shaped dialogs, much like Windows Media Player[^] does, with it's own user-defined edge. I'd search for topics here at CP, but I do not even know what the technique is called, making it hard. I figured it had something to do with transparency, so I search for that keyword, but nothing obvious surfaced. Anyone know a good article I ought to read? I'm just looking for some direction. :) Edit: I'd like something in MFC, if at all possible... and if not possible I'd like to know why? :) : Dean 'Karnatos' Michaud
try: http://www.codeproject.com/gdi/coolrgn.asp[^] It allows you to create a region to use with SetWindowRgn (as Michael Dunn suggestion below) from a bitmap file. I use something similar for my funky non-rectangle app. That's why I ramble so much. If you're short and quotable, there's a much greater danger of ending up in a sig. [Christopher Duncan on how to prevent yourself from ending up in a sig]