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. Force a program run in a windows

Force a program run in a windows

Scheduled Pinned Locked Moved C / C++ / MFC
question
15 Posts 7 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.
  • L leenmie

    I want to do so. I make a window. Then, in that window, I run a program, but that program (the display of it, exactly) must be only in the window I made. Is it possible ??? And if yes, how can I solve it ????:confused:

    _ Offline
    _ Offline
    __yb
    wrote on last edited by
    #2

    It can be done. The display properteis>screen saver property page does it. Inspecting it with spy++ tells that the screen saver (*.scr) creates its window as a (grand grand grand)child of the property page window. So just create a window in the child process and call SetParent on it with a HWND from the parent process

    L 1 Reply Last reply
    0
    • _ __yb

      It can be done. The display properteis>screen saver property page does it. Inspecting it with spy++ tells that the screen saver (*.scr) creates its window as a (grand grand grand)child of the property page window. So just create a window in the child process and call SetParent on it with a HWND from the parent process

      L Offline
      L Offline
      leenmie
      wrote on last edited by
      #3

      Is it possible if I want Age of empire or Word or Excel run in my window ??? I cant SetParent them. -- modified at 4:01 Wednesday 11th January, 2006

      1 Reply Last reply
      0
      • L leenmie

        I want to do so. I make a window. Then, in that window, I run a program, but that program (the display of it, exactly) must be only in the window I made. Is it possible ??? And if yes, how can I solve it ????:confused:

        D Offline
        D Offline
        Dennis Gourjii
        wrote on last edited by
        #4

        It's possible. Force the main window of that program to be a child window of your main window. I did that once with sndrec32.exe You'll have to deal with lots of nasty surprises, though.

        O 1 Reply Last reply
        0
        • D Dennis Gourjii

          It's possible. Force the main window of that program to be a child window of your main window. I did that once with sndrec32.exe You'll have to deal with lots of nasty surprises, though.

          O Offline
          O Offline
          Owner drawn
          wrote on last edited by
          #5

          HAND wrote:

          You'll have to deal with lots of nasty surprises

          Like...

          Jesus Loves

          --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

          E 1 Reply Last reply
          0
          • O Owner drawn

            HAND wrote:

            You'll have to deal with lots of nasty surprises

            Like...

            Jesus Loves

            --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

            E Offline
            E Offline
            Eytukan
            wrote on last edited by
            #6

            Like the owner felt after drawing you!!;P:) .. where you went yesterday?? i was unable to find a matching blue color on the screen :(


            0x0400: "But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho

            --[V]--

            O 1 Reply Last reply
            0
            • E Eytukan

              Like the owner felt after drawing you!!;P:) .. where you went yesterday?? i was unable to find a matching blue color on the screen :(


              0x0400: "But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho

              --[V]--

              O Offline
              O Offline
              Owner drawn
              wrote on last edited by
              #7

              Run :-D I was busy so couldn't log in. Nice to see you. You changed your name to Vivek from T-1000. :-D

              Jesus Loves

              --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

              E 1 Reply Last reply
              0
              • O Owner drawn

                Run :-D I was busy so couldn't log in. Nice to see you. You changed your name to Vivek from T-1000. :-D

                Jesus Loves

                --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

                E Offline
                E Offline
                Eytukan
                wrote on last edited by
                #8

                yeaaa... i didn't like the name.. and moreover i didn't want to use fake names like few people do here !!!!!!;P , it seems you have changed the scrolling banner color??what's special??


                0x0400: "But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho

                --[V]--

                O 1 Reply Last reply
                0
                • E Eytukan

                  yeaaa... i didn't like the name.. and moreover i didn't want to use fake names like few people do here !!!!!!;P , it seems you have changed the scrolling banner color??what's special??


                  0x0400: "But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho

                  --[V]--

                  O Offline
                  O Offline
                  Owner drawn
                  wrote on last edited by
                  #9

                  VivekuniQ wrote:

                  i didn't want to use fake names like few people do here

                  Hmmm... Throwing shit at me. Huh:-D

                  VivekuniQ wrote:

                  it seems you have changed the scrolling banner color??what's special??

                  I've crossed 300 messages. He he

                  Jesus Loves

                  --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

                  T 1 Reply Last reply
                  0
                  • O Owner drawn

                    VivekuniQ wrote:

                    i didn't want to use fake names like few people do here

                    Hmmm... Throwing shit at me. Huh:-D

                    VivekuniQ wrote:

                    it seems you have changed the scrolling banner color??what's special??

                    I've crossed 300 messages. He he

                    Jesus Loves

                    --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

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

                    Owner drawn wrote:

                    I've crossed 300 messages. He he

                    So u counting your Messages... you dirty man :-D

                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                    cheers, Alok Gupta VC Forum Q&A :- I/ IV

                    E 1 Reply Last reply
                    0
                    • T ThatsAlok

                      Owner drawn wrote:

                      I've crossed 300 messages. He he

                      So u counting your Messages... you dirty man :-D

                      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                      cheers, Alok Gupta VC Forum Q&A :- I/ IV

                      E Offline
                      E Offline
                      Eytukan
                      wrote on last edited by
                      #11

                      normally "Counting the..." refers to the decreasing numbers.. but here it goes up!:-D


                      0x0400: "But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho

                      --[V]--

                      T 1 Reply Last reply
                      0
                      • E Eytukan

                        normally "Counting the..." refers to the decreasing numbers.. but here it goes up!:-D


                        0x0400: "But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho

                        --[V]--

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

                        VivekuniQ wrote:

                        normally "Counting the..." refers to the decreasing numbers.. but here it goes up!

                        Hope So :)

                        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                        cheers, Alok Gupta VC Forum Q&A :- I/ IV

                        O 1 Reply Last reply
                        0
                        • T ThatsAlok

                          VivekuniQ wrote:

                          normally "Counting the..." refers to the decreasing numbers.. but here it goes up!

                          Hope So :)

                          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                          cheers, Alok Gupta VC Forum Q&A :- I/ IV

                          O Offline
                          O Offline
                          Owner drawn
                          wrote on last edited by
                          #13

                          I didn't know about it until I checked my profile. I realised lol I've reached above 300.;)

                          Jesus Loves

                          --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

                          V 1 Reply Last reply
                          0
                          • O Owner drawn

                            I didn't know about it until I checked my profile. I realised lol I've reached above 300.;)

                            Jesus Loves

                            --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

                            V Offline
                            V Offline
                            vikas amin
                            wrote on last edited by
                            #14

                            Congrates on ur count but change back the banner to normal colour it was more effective , this is quiet flashy. And spoils the real effect of the banner words. Vikas Amin Embin Technology Bombay

                            O 1 Reply Last reply
                            0
                            • V vikas amin

                              Congrates on ur count but change back the banner to normal colour it was more effective , this is quiet flashy. And spoils the real effect of the banner words. Vikas Amin Embin Technology Bombay

                              O Offline
                              O Offline
                              Owner drawn
                              wrote on last edited by
                              #15

                              As you say your excellency.;P

                              Jesus Loves:rose:

                              --Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:

                              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