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. Windows Message to child window

Windows Message to child window

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutorial
4 Posts 2 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.
  • V Offline
    V Offline
    velayudhan_raj
    wrote on last edited by
    #1

    Hi guys, I have two applications - 1. dialog based application 2. MFC gui dll. I have to send windows message from first application to second application. The problem is MFC Gui dll application is the child application of another window and the gui dll window has no name ( as title bar is removed ). For sending windows message, we need the window name, In my case, the gui dll window has no name and it is loaded as a child window on a third party application, in which i have no control. So how to send message from application 1 to application 2. Please help me guys. Its urgent. Thanks in Advance Velayudhan

    M 1 Reply Last reply
    0
    • V velayudhan_raj

      Hi guys, I have two applications - 1. dialog based application 2. MFC gui dll. I have to send windows message from first application to second application. The problem is MFC Gui dll application is the child application of another window and the gui dll window has no name ( as title bar is removed ). For sending windows message, we need the window name, In my case, the gui dll window has no name and it is loaded as a child window on a third party application, in which i have no control. So how to send message from application 1 to application 2. Please help me guys. Its urgent. Thanks in Advance Velayudhan

      M Offline
      M Offline
      Monty2
      wrote on last edited by
      #2

      I suppose you will use the window name in FindWindow function, you can use FindWindow with NULL in name and your Window's Classname in the next parameter and it will return the window handle.


      Help your local Search & Rescue. Get lost!

      V 1 Reply Last reply
      0
      • M Monty2

        I suppose you will use the window name in FindWindow function, you can use FindWindow with NULL in name and your Window's Classname in the next parameter and it will return the window handle.


        Help your local Search & Rescue. Get lost!

        V Offline
        V Offline
        velayudhan_raj
        wrote on last edited by
        #3

        Thanks, but it will not work in the case of child windows,

        M 1 Reply Last reply
        0
        • V velayudhan_raj

          Thanks, but it will not work in the case of child windows,

          M Offline
          M Offline
          Monty2
          wrote on last edited by
          #4

          You can always EnumWindows to find the child window. IMHO you are better off trying to create some sort of IPC so that one window can communicate with the other and also pass on their HWNDs (IPC could be Pipes.. TCP/IP whatever suits you).


          Help your local Search & Rescue. Get lost!

          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