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

DialogBox

Scheduled Pinned Locked Moved C / C++ / MFC
tutoriallearning
6 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.
  • K Offline
    K Offline
    kk tvm
    wrote on last edited by
    #1

    Hi How to create a dialog box with controls without using resource editor thanx in advance

    KK

    H O 2 Replies Last reply
    0
    • K kk tvm

      Hi How to create a dialog box with controls without using resource editor thanx in advance

      KK

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

      Can you be more specific create dialog box with controls?

      _**


      **_

      WhiteSky


      K 1 Reply Last reply
      0
      • H Hamid Taebi

        Can you be more specific create dialog box with controls?

        _**


        **_

        WhiteSky


        K Offline
        K Offline
        kk tvm
        wrote on last edited by
        #3

        Hi I like to create a dialog box using CDialog without resource identifier

        KK

        H 1 Reply Last reply
        0
        • K kk tvm

          Hi I like to create a dialog box using CDialog without resource identifier

          KK

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

          But CDialog::Create(need to a resource); like this m_MyDialog->Create(IDD_MYDIALOG,this);

          _**


          **_

          WhiteSky


          T 1 Reply Last reply
          0
          • H Hamid Taebi

            But CDialog::Create(need to a resource); like this m_MyDialog->Create(IDD_MYDIALOG,this);

            _**


            **_

            WhiteSky


            T Offline
            T Offline
            toxcct
            wrote on last edited by
            #5

            WhiteSky wrote:

            CDialog::Create(need to a resource); like this m_MyDialog->Create(IDD_MYDIALOG,this);

            no whiteSky. IDD_MYDIALOG is not a resource, it is only a macro declared as a #define in the resource.h header of your project. but you could have created it by yourself... anyway, Create() is the method to use to create a dialog, such as any controls on it also... the point is, ,when creating the controls, to indicate their parent as being the dialog box.


            TOXCCT >>> GEII power

            [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

            1 Reply Last reply
            0
            • K kk tvm

              Hi How to create a dialog box with controls without using resource editor thanx in advance

              KK

              O Offline
              O Offline
              ovidiucucu
              wrote on last edited by
              #6

              With no resource template, you can create a dialog based on a DLGTEMPLATE structure by calling either CreateDialogIndirect (modeless dialog) or DialogBoxIndirect (modal dialog).

              Ovidiu Cucu Microsoft MVP - Visual C++

              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