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. Please help !!!

Please help !!!

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

    Hi All, I am creating an application in which I created a front page in Dialog based application. There in the front page I placed some buttons of different applications. When I chick any button which is inside the front page the partitcular application starts running. I set that application window on top using SetWindowPos() function. now the problem is While running any application from the front page, the front page doesnt get disabled. I can close, minimize or maximize the front page. That is what I dont want. I want that whenever any application runs from my front page the front page get COMPLETELY disabled. please help.... Thanks.

    T V 2 Replies Last reply
    0
    • C C myLife

      Hi All, I am creating an application in which I created a front page in Dialog based application. There in the front page I placed some buttons of different applications. When I chick any button which is inside the front page the partitcular application starts running. I set that application window on top using SetWindowPos() function. now the problem is While running any application from the front page, the front page doesnt get disabled. I can close, minimize or maximize the front page. That is what I dont want. I want that whenever any application runs from my front page the front page get COMPLETELY disabled. please help.... Thanks.

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      use api EnableWindow(FALSE)

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
      Never mind - my own stupidity is the source of every "problem" - Mixture

      cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>

      1 Reply Last reply
      0
      • C C myLife

        Hi All, I am creating an application in which I created a front page in Dialog based application. There in the front page I placed some buttons of different applications. When I chick any button which is inside the front page the partitcular application starts running. I set that application window on top using SetWindowPos() function. now the problem is While running any application from the front page, the front page doesnt get disabled. I can close, minimize or maximize the front page. That is what I dont want. I want that whenever any application runs from my front page the front page get COMPLETELY disabled. please help.... Thanks.

        V Offline
        V Offline
        Varghese Paul M
        wrote on last edited by
        #3

        You can use WaitForSingleObject API to wait the new process to terminate. You can use the process handle from the PROCESS_INFORMATION structure populated by the CreateProcess API.

        C 1 Reply Last reply
        0
        • V Varghese Paul M

          You can use WaitForSingleObject API to wait the new process to terminate. You can use the process handle from the PROCESS_INFORMATION structure populated by the CreateProcess API.

          C Offline
          C Offline
          C myLife
          wrote on last edited by
          #4

          Thanks It worked. :) But as soon as I close this new process which I am creating from "CreateProcess()" my main page is also gets closed. It terminates both the processes. How to avoid this, any ideas?

          modified on Tuesday, August 5, 2008 3:27 AM

          V 1 Reply Last reply
          0
          • C C myLife

            Thanks It worked. :) But as soon as I close this new process which I am creating from "CreateProcess()" my main page is also gets closed. It terminates both the processes. How to avoid this, any ideas?

            modified on Tuesday, August 5, 2008 3:27 AM

            V Offline
            V Offline
            Varghese Paul M
            wrote on last edited by
            #5

            Could you please provide the code block ?

            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