MDI Windows

This is a discussion on MDI Windows within the Windows Programming forums, part of the Platform Specific Boards category; Hi I am trying to send a WM_CHAR message from one application to a MDI child window, am I right ...

  1. #1
    Unregistered
    Guest

    MDI Windows

    Hi
    I am trying to send a WM_CHAR message from one application to a MDI child window, am I right in thinking that I have to pass it through the client window? If so how do I call SendMessage()?
    Code:
    SendMessage( client, WM_CHAR, // heres the problem )
    How do I specify the child window and the key?
    Thanks for any help

  2. #2
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    Ever tried reading a book?
    what does signature stand for?

  3. #3
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    that's not very nice

    in any case, there are lots of ways to get a specific child window. You can keep track of which one is on top with WM_MDIACTIVATE and set a "current" child. if that's not the one you want, you can use EnumChildWindows on the client window. that should be an easy way to send a message to every one of the children. Or you can just maintain your own list of children by adding and removing on every child's WM_CREATE and WM_DESTROY.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  2. Editor design: Traditional MDI versus Tabbed MDI
    By psychopath in forum Game Programming
    Replies: 7
    Last Post: 01-22-2007, 06:48 AM
  3. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 03:44 AM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21