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. Regarding Modeless dialog

Regarding Modeless dialog

Scheduled Pinned Locked Moved C / C++ / MFC
help
8 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.
  • B Offline
    B Offline
    balajeedurai
    wrote on last edited by
    #1

    Hai Frens I am facing a prblm with modeless dialog. I am taking the parent for child dialog as desktop passing GetDesktopWindow() function in Create() func of dialog. Now the prblm is once i close the child, the parent is not getting enabled automatically. Only if i click it will get enabled. What i want is the parent should get enabled automatically if i close the child. . . Could any body help me to get it out this prblm. . . thanx bye

    G S D 3 Replies Last reply
    0
    • B balajeedurai

      Hai Frens I am facing a prblm with modeless dialog. I am taking the parent for child dialog as desktop passing GetDesktopWindow() function in Create() func of dialog. Now the prblm is once i close the child, the parent is not getting enabled automatically. Only if i click it will get enabled. What i want is the parent should get enabled automatically if i close the child. . . Could any body help me to get it out this prblm. . . thanx bye

      G Offline
      G Offline
      GDavy
      wrote on last edited by
      #2

      on WM_DESTROY of your modeless dialog set the focus to the desktop window... Hope this helps you, Greetz, Davy

      B 2 Replies Last reply
      0
      • G GDavy

        on WM_DESTROY of your modeless dialog set the focus to the desktop window... Hope this helps you, Greetz, Davy

        B Offline
        B Offline
        balajeedurai
        wrote on last edited by
        #3

        My application is a SDI and i am invoking the modeless dialog from the menu item click. Once i close the dialog the SDI should get enaled. Which function i have to use set the focus for desktop window. . .weather i have to set focus for SDI or desktop? Thanx

        1 Reply Last reply
        0
        • G GDavy

          on WM_DESTROY of your modeless dialog set the focus to the desktop window... Hope this helps you, Greetz, Davy

          B Offline
          B Offline
          balajeedurai
          wrote on last edited by
          #4

          uueeMy application is a SDI and i am invoking the modeless dialog from the menu item click. Once i close the dialog the SDI should get enaled. Which function i have to use set the focus for desktop window. . .weather i have to set focus for SDI or desktop? Thanx

          G 1 Reply Last reply
          0
          • B balajeedurai

            uueeMy application is a SDI and i am invoking the modeless dialog from the menu item click. Once i close the dialog the SDI should get enaled. Which function i have to use set the focus for desktop window. . .weather i have to set focus for SDI or desktop? Thanx

            G Offline
            G Offline
            GDavy
            wrote on last edited by
            #5

            I think this should set the focus to the main window of your app... ::SetFocus(AfxGetMainWnd()->m_hWnd); Greetz, Davy

            B 1 Reply Last reply
            0
            • G GDavy

              I think this should set the focus to the main window of your app... ::SetFocus(AfxGetMainWnd()->m_hWnd); Greetz, Davy

              B Offline
              B Offline
              balajeedurai
              wrote on last edited by
              #6

              sorry Davy. . .Its not working. I tried it by placing the ::SetFocus(AfxGetMainWnd()->m_hWnd)func in the OnDestroy()func of child.But its not working. Do u have any other idea. Thanx

              1 Reply Last reply
              0
              • B balajeedurai

                Hai Frens I am facing a prblm with modeless dialog. I am taking the parent for child dialog as desktop passing GetDesktopWindow() function in Create() func of dialog. Now the prblm is once i close the child, the parent is not getting enabled automatically. Only if i click it will get enabled. What i want is the parent should get enabled automatically if i close the child. . . Could any body help me to get it out this prblm. . . thanx bye

                S Offline
                S Offline
                Sujan Christo
                wrote on last edited by
                #7

                Hi, Try using SetWindowPos. Have a look @ msdn. i think it is having some same source related to it Sujan

                1 Reply Last reply
                0
                • B balajeedurai

                  Hai Frens I am facing a prblm with modeless dialog. I am taking the parent for child dialog as desktop passing GetDesktopWindow() function in Create() func of dialog. Now the prblm is once i close the child, the parent is not getting enabled automatically. Only if i click it will get enabled. What i want is the parent should get enabled automatically if i close the child. . . Could any body help me to get it out this prblm. . . thanx bye

                  D Offline
                  D Offline
                  dharani
                  wrote on last edited by
                  #8

                  Hi sorryI am not replying your message. ButI wantto knowhow I can also make my name go scrolling as ur "BARIN" does here ....Could u tell me ? Dharani Babu S

                  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