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. how to identify the active child window?

how to identify the active child window?

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

    hello all, i'am having 4 child form(window) in my application, and i added a combo box in the main frame tool bar. now how can i find which child form is active and based on that active form i would like to change the cursor position of combo, can you please tell, how to do it? which function is suitable thanks panthal

    C H 2 Replies Last reply
    0
    • P panthal

      hello all, i'am having 4 child form(window) in my application, and i added a combo box in the main frame tool bar. now how can i find which child form is active and based on that active form i would like to change the cursor position of combo, can you please tell, how to do it? which function is suitable thanks panthal

      C Offline
      C Offline
      chandu004
      wrote on last edited by
      #2

      before initiating any child dialog, try to set the corresponding combo item.

      1 Reply Last reply
      0
      • P panthal

        hello all, i'am having 4 child form(window) in my application, and i added a combo box in the main frame tool bar. now how can i find which child form is active and based on that active form i would like to change the cursor position of combo, can you please tell, how to do it? which function is suitable thanks panthal

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        Does GetActiveWindow helpful?

        P 1 Reply Last reply
        0
        • H Hamid Taebi

          Does GetActiveWindow helpful?

          P Offline
          P Offline
          panthal
          wrote on last edited by
          #4

          i'am going to change combo item in the main frame window based on active child form, if the child form 1 is active , the main frame combo box value is set to cursor(1).so how can i identify the active child form? and where will i initialize the combo in main frame thank u

          P H 2 Replies Last reply
          0
          • P panthal

            i'am going to change combo item in the main frame window based on active child form, if the child form 1 is active , the main frame combo box value is set to cursor(1).so how can i identify the active child form? and where will i initialize the combo in main frame thank u

            P Offline
            P Offline
            panthal
            wrote on last edited by
            #5

            how to check , whether the child window is active or not. is there any function to find it? -- modified at 2:28 Saturday 3rd November, 2007

            H 1 Reply Last reply
            0
            • P panthal

              i'am going to change combo item in the main frame window based on active child form, if the child form 1 is active , the main frame combo box value is set to cursor(1).so how can i identify the active child form? and where will i initialize the combo in main frame thank u

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              When you are on the active window you can send your data to combobox.

              1 Reply Last reply
              0
              • P panthal

                how to check , whether the child window is active or not. is there any function to find it? -- modified at 2:28 Saturday 3rd November, 2007

                H Offline
                H Offline
                Hamid Taebi
                wrote on last edited by
                #7

                See GetActiveWindow.

                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