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. Modaless dialog

Modaless dialog

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 2 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.
  • R Offline
    R Offline
    RichardWdy
    wrote on last edited by
    #1

    I have a modal dialog, but I want to change it into a modaless one. I must have some controls initilized in OnInitDialog(). ... m_pDC = m_pWnd->GetDC(); m_comboCtl.SetCurSel(0); ... But modaless dialog can't reply to WM_INITDIALOG message. How can I change them?

    N 1 Reply Last reply
    0
    • R RichardWdy

      I have a modal dialog, but I want to change it into a modaless one. I must have some controls initilized in OnInitDialog(). ... m_pDC = m_pWnd->GetDC(); m_comboCtl.SetCurSel(0); ... But modaless dialog can't reply to WM_INITDIALOG message. How can I change them?

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      http://www.codeproject.com/useritems/gettingmodeless.asp Nish Yeah that's me down below ;-)

      R 1 Reply Last reply
      0
      • N Nish Nishant

        http://www.codeproject.com/useritems/gettingmodeless.asp Nish Yeah that's me down below ;-)

        R Offline
        R Offline
        RichardWdy
        wrote on last edited by
        #3

        But I still have a question... Where can I have my controls, like combo control, progress control, etc. initialized? OnSize(), OnMove() seem not to be a right place.

        N 1 Reply Last reply
        0
        • R RichardWdy

          But I still have a question... Where can I have my controls, like combo control, progress control, etc. initialized? OnSize(), OnMove() seem not to be a right place.

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          You do all initialization in OnInitDialog. Just like in the modal dialog. Nish Yeah that's me down below ;-)

          R 1 Reply Last reply
          0
          • N Nish Nishant

            You do all initialization in OnInitDialog. Just like in the modal dialog. Nish Yeah that's me down below ;-)

            R Offline
            R Offline
            RichardWdy
            wrote on last edited by
            #5

            Thank you! Just so easy!! Windows98 SE, VC++ 6.0 SP5

            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