CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2000
    Location
    Tehran - Iran
    Posts
    949

    How parent window notify ?!

    Hi there,

    How a parent window notify that a child window has been created ?!
    for example i create a text box in a dialog dynamically ( run-time ), how the dialog notifies ?! is there any message or something ?!

    or for example in an MDI application, new child window has been created ...
    how the parent window notifies ?

    Regards,

  2. #2
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: How parent window notify ?!

    There is no such message as far as I know, but you could install a hook.
    Why are you interested in that kind of information though ?

  3. #3
    Join Date
    Oct 2000
    Location
    Tehran - Iran
    Posts
    949

    Re: How parent window notify ?!

    Hi Kirant, and thanks for reply

    About Hooking, unfortunatly in the platform i'm writing the program there is some limitation to use Hooking functions ... so simply i can't use them .

    This program will be kind of system application for pocket pc devices ...

    ps: long time i didn't check codeguru, nice to see ya

    Regrads,

  4. #4
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,656

    Re: How parent window notify ?!

    Quote Originally Posted by Hadi Rezaie
    How a parent window notify that a child window has been created ?!
    for example i create a text box in a dialog dynamically ( run-time ), how the dialog notifies ?! is there any message or something ?!
    Don't you call CreateWindow() from that parent dialog? Then it already knows, doesn't it?
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

  5. #5
    Join Date
    Oct 2000
    Location
    Tehran - Iran
    Posts
    949

    Re: How parent window notify ?!

    Hi Vladimir,

    sorry for my bad english, i think i ask the question bad ...
    you know, actually i dont create any child windows myself
    let say that "an application starts to create some child window at run-time", does the parent window notifies that (with messeges or something .. ) ?

    Regrads,

  6. #6
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How parent window notify ?!

    I believe Vladimir's point is that since child windows are normally created by the parent window, there isn't any need to notify the parent when a child is created (since presumably the parent know about the child since it created it).

    Are you working in code that you have written or are you talking about monitoring an application that you have not written?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured