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. Several dialog boxes

Several dialog boxes

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicslearning
9 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.
  • J Offline
    J Offline
    joy007
    wrote on last edited by
    #1

    Is it possible to open up dialogboxes as many numbers as an user wishes and specifies at run time? If possible then how? How can I make a bitmap resource clickable so that a new dialog box appears when it is clicked ,in which there may contain the same bitmap resource along with the upper said clickable criterion???:^)

    R M J 3 Replies Last reply
    0
    • J joy007

      Is it possible to open up dialogboxes as many numbers as an user wishes and specifies at run time? If possible then how? How can I make a bitmap resource clickable so that a new dialog box appears when it is clicked ,in which there may contain the same bitmap resource along with the upper said clickable criterion???:^)

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      joy007 wrote: Is it possible to open up dialogboxes as many numbers as an user wishes and specifies at run time? I don't understand this question. If you mean, is it possible to have multiple dialog boxes open at the same time, the answer is yes, if you make them modeless dialogs. joy007 wrote: How can I make a bitmap resource clickable so that a new dialog box appears when it is clicked See this[^] article to create a bitmap button that displays as a static control (i.e. without the button border). Display your dialoig in the button's handler. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

      D 1 Reply Last reply
      0
      • J joy007

        Is it possible to open up dialogboxes as many numbers as an user wishes and specifies at run time? If possible then how? How can I make a bitmap resource clickable so that a new dialog box appears when it is clicked ,in which there may contain the same bitmap resource along with the upper said clickable criterion???:^)

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        yes. just do something like :

        /// handler for the click in the bitmap...
        ...
        CYourDialog* p = new CYourDialog( ID_OF_THE_BITMAP_YOU_JUST_CLICKED_ON );
        p->Create( ... );
        p->ShowWindow( SW_TRUW );
        ...

        You will need to keep track of the dialogs so you can delete them eventually.


        Maximilien Lincourt Your Head A Splode - Strong Bad

        R 1 Reply Last reply
        0
        • M Maximilien

          yes. just do something like :

          /// handler for the click in the bitmap...
          ...
          CYourDialog* p = new CYourDialog( ID_OF_THE_BITMAP_YOU_JUST_CLICKED_ON );
          p->Create( ... );
          p->ShowWindow( SW_TRUW );
          ...

          You will need to keep track of the dialogs so you can delete them eventually.


          Maximilien Lincourt Your Head A Splode - Strong Bad

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          Huh? :wtf: /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

          M 1 Reply Last reply
          0
          • R Ravi Bhavnani

            Huh? :wtf: /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

            M Offline
            M Offline
            Maximilien
            wrote on last edited by
            #5

            what ??? it should have been ->ShowWindow(SW_SHOW); :confused:


            Maximilien Lincourt Your Head A Splode - Strong Bad

            1 Reply Last reply
            0
            • J joy007

              Is it possible to open up dialogboxes as many numbers as an user wishes and specifies at run time? If possible then how? How can I make a bitmap resource clickable so that a new dialog box appears when it is clicked ,in which there may contain the same bitmap resource along with the upper said clickable criterion???:^)

              J Offline
              J Offline
              joy007
              wrote on last edited by
              #6

              joy007 wrote: Is it possible to open up dialogboxes as many numbers as an user wishes and specifies at run time? If possible then how? Ravi,I mean to say,that when an user draws an item in a document and next double clicks on the drawn item leading to open up a dialog box or another document which may or may not contain the same item drawn.If same item is found drawn on this new document and double clicked it should open up another dialog box or document and so on.... Actually I want the to make the item as multilevel so that an user can go through easily from its root level to node.

              1 Reply Last reply
              0
              • R Ravi Bhavnani

                joy007 wrote: Is it possible to open up dialogboxes as many numbers as an user wishes and specifies at run time? I don't understand this question. If you mean, is it possible to have multiple dialog boxes open at the same time, the answer is yes, if you make them modeless dialogs. joy007 wrote: How can I make a bitmap resource clickable so that a new dialog box appears when it is clicked See this[^] article to create a bitmap button that displays as a static control (i.e. without the button border). Display your dialoig in the button's handler. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                Ravi Bhavnani wrote: If you mean, is it possible to have multiple dialog boxes open at the same time, the answer is yes, if you make them modeless dialogs. Whether they are modal or modeless, multiple dialogs can be open simultaneously.


                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                R 1 Reply Last reply
                0
                • D David Crow

                  Ravi Bhavnani wrote: If you mean, is it possible to have multiple dialog boxes open at the same time, the answer is yes, if you make them modeless dialogs. Whether they are modal or modeless, multiple dialogs can be open simultaneously.


                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                  R Offline
                  R Offline
                  Ravi Bhavnani
                  wrote on last edited by
                  #8

                  I understood "open" to mean "accept user input". /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

                  D 1 Reply Last reply
                  0
                  • R Ravi Bhavnani

                    I understood "open" to mean "accept user input". /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

                    D Offline
                    D Offline
                    David Crow
                    wrote on last edited by
                    #9

                    It was not an intuitive question no matter how you sliced it.


                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                    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