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. How to Create Dialog Without resource Dynamically

How to Create Dialog Without resource Dynamically

Scheduled Pinned Locked Moved C / C++ / MFC
tutoriallearning
5 Posts 3 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.
  • A Offline
    A Offline
    Azghar Hussain
    wrote on last edited by
    #1

    Hi Friends, Can any one please tell me how to create Dialog without resource dynamically. Thanks, Live and Let live

    I 1 Reply Last reply
    0
    • A Azghar Hussain

      Hi Friends, Can any one please tell me how to create Dialog without resource dynamically. Thanks, Live and Let live

      I Offline
      I Offline
      iceage
      wrote on last edited by
      #2

      take a look at CreateDialogIndirect in MSDN.

      A 1 Reply Last reply
      0
      • I iceage

        take a look at CreateDialogIndirect in MSDN.

        A Offline
        A Offline
        Azghar Hussain
        wrote on last edited by
        #3

        Thankyou for the answer. Is there any way in which I can create Modal Dialog Box Dynamically without using resource. Thanks, Salman Live and Let live

        R 1 Reply Last reply
        0
        • A Azghar Hussain

          Thankyou for the answer. Is there any way in which I can create Modal Dialog Box Dynamically without using resource. Thanks, Salman Live and Let live

          R Offline
          R Offline
          Robert A T Kaldy
          wrote on last edited by
          #4

          You can override the OnCreate member function, and create controls dynamically there. And handle the command BN_CLICKED of the Ok button and put there your own DDX ....etc. etc. I think this seems complicated and useless. What do you want dynamic dialog box for? Could you not create the dialog box in resource editor and only make the specific controls visible/invisible at runtime? Robert-Antonio

          A 1 Reply Last reply
          0
          • R Robert A T Kaldy

            You can override the OnCreate member function, and create controls dynamically there. And handle the command BN_CLICKED of the Ok button and put there your own DDX ....etc. etc. I think this seems complicated and useless. What do you want dynamic dialog box for? Could you not create the dialog box in resource editor and only make the specific controls visible/invisible at runtime? Robert-Antonio

            A Offline
            A Offline
            Azghar Hussain
            wrote on last edited by
            #5

            Thanks for your reply, But I have to create OCX of my Dialog so, I want to create DialogBOx without Resource. Any how I got answer and will post this artical on codeproject as soon as possible. But the real problem is even I am able to create DialogBox Dynamically. I am not able to attach the controls to it dynamically. Once I get this answer I will post it as soon as possible. Thanks, Salman Live and Let live

            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