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. Modeless Dialog

Modeless Dialog

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 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.
  • M Offline
    M Offline
    meirav
    wrote on last edited by
    #1

    Hi, I am using a Dialog based application, When the Main dilaog is displayed i want to create another dialog(modeless dilaog), i used the CDilag::create function but it's not working, i think i have a problem with the second urgument(CWnd*) what do i missing here?? and what do i have to write in the second urgument??? Thanks ;)

    J J 2 Replies Last reply
    0
    • M meirav

      Hi, I am using a Dialog based application, When the Main dilaog is displayed i want to create another dialog(modeless dilaog), i used the CDilag::create function but it's not working, i think i have a problem with the second urgument(CWnd*) what do i missing here?? and what do i have to write in the second urgument??? Thanks ;)

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      The second argument is the parent window (in your case, probably the main dialog). It's hard to know what's going wrong with your app. Remember that modeless dialogs must be created on the heap (i.e. with new CYourDialog) or defined as members of the parent window, and never be defined as local variables inside a funtion. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      1 Reply Last reply
      0
      • M meirav

        Hi, I am using a Dialog based application, When the Main dilaog is displayed i want to create another dialog(modeless dilaog), i used the CDilag::create function but it's not working, i think i have a problem with the second urgument(CWnd*) what do i missing here?? and what do i have to write in the second urgument??? Thanks ;)

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

        meirav wrote: i used the CDilag::create function but it's not working,    You need to make sure that you call CWnd::ShowWindow( SW_SHOW ) after creation of the non-modal dialog; either in the non-modal dialog's constructor, or directly, after creation.    Peace! -=- James.

        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