Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Custom shaped dialogs

Custom shaped dialogs

Scheduled Pinned Locked Moved C / C++ / MFC
c++comtutorialquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dean Michaud
    wrote on last edited by
    #1

    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

    N A 2 Replies Last reply
    0
    • D Dean 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

      N Offline
      N Offline
      Navin
      wrote on last edited by
      #2

      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.

      D M 2 Replies Last reply
      0
      • N Navin

        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.

        D Offline
        D Offline
        Dean Michaud
        wrote on last edited by
        #3

        Beautiful... Most appreciated! : Dean 'Karnatos' Michaud

        1 Reply Last reply
        0
        • N Navin

          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.

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • D Dean 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

            A Offline
            A Offline
            Atlantys
            wrote on last edited by
            #5

            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]

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups