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. Dialogbox Issue ?

Dialogbox Issue ?

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
8 Posts 5 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.
  • S Offline
    S Offline
    Sakthiu
    wrote on last edited by
    #1

    Hi, I have a Dialogbox (Main Dialog). I need to have another dialogbox (no title bar) inside this main dialogbox. How can i do this ? Thanks.

    H P 2 Replies Last reply
    0
    • S Sakthiu

      Hi, I have a Dialogbox (Main Dialog). I need to have another dialogbox (no title bar) inside this main dialogbox. How can i do this ? Thanks.

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Insert a dialog to your resource or insert a new CDialog to your class


      WhiteSky


      S 1 Reply Last reply
      0
      • S Sakthiu

        Hi, I have a Dialogbox (Main Dialog). I need to have another dialogbox (no title bar) inside this main dialogbox. How can i do this ? Thanks.

        P Offline
        P Offline
        prasad_som
        wrote on last edited by
        #3

        Create a dialog box without WS_CAPTION style.

        Prasad Notifier using ATL | Operator new[],delete[][^]

        1 Reply Last reply
        0
        • H Hamid Taebi

          Insert a dialog to your resource or insert a new CDialog to your class


          WhiteSky


          S Offline
          S Offline
          Sakthiu
          wrote on last edited by
          #4

          I mean to say that the second dialog should appear like other controls in that main dialogbox. How ?

          H J M 4 Replies Last reply
          0
          • S Sakthiu

            I mean to say that the second dialog should appear like other controls in that main dialogbox. How ?

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            Sakthiu wrote:

            I mean to say that the second dialog should appear like other controls in that main dialogbox. How ?

            After insert it to your project use of Create


            WhiteSky


            1 Reply Last reply
            0
            • S Sakthiu

              I mean to say that the second dialog should appear like other controls in that main dialogbox. How ?

              J Offline
              J Offline
              James R Twine
              wrote on last edited by
              #6

              I have done this previously using two different approaches.  The first was to simply reuse the Property Page/Property Sheet approach, the other was to manually manage the child dialog as a non-modal dialog window, and keep moving/sizing it as the parent is moved/sized.    You have to watch out for focus issues via keyboard navigation in either case.  Look up the WS_EX_CONTROLPARENT style and KB articles that mention it for more information.    Peace!

              -=- James
              Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
              Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
              See DeleteFXPFiles

              1 Reply Last reply
              0
              • S Sakthiu

                I mean to say that the second dialog should appear like other controls in that main dialogbox. How ?

                H Offline
                H Offline
                Hamid Taebi
                wrote on last edited by
                #7

                You can right click on resource and insert CDialog to your project and on the main dialog use of

                m_Preview.Create(IDD_MYDAILOG,0);//without WS_CAPTION
                m_Preview.ShowWindow(1);


                WhiteSky


                1 Reply Last reply
                0
                • S Sakthiu

                  I mean to say that the second dialog should appear like other controls in that main dialogbox. How ?

                  M Offline
                  M Offline
                  Mark Salsbery
                  wrote on last edited by
                  #8

                  Dialogs are windows, just like other windows, just like controls. You may want to look up windows and child windows in the MSDN and/or SDK. Your dialog needs to be a child window (have the WS_CHILD style) and be modeless. You'll need to position it within the parent window as well - you can use MoveWindow() for this.

                  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