CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2011
    Posts
    6

    Question Sequence of Window Events in MFC

    Hi,

    Can someone point to a resource which explains the sequence in which various events are fired when a Window is created? I am specially interested in the events fired for creation/ showing a MDIChildWnd.

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Sequence of Window Events in MFC

    Why don't you step through it in the debugger and see exactly what it does.

  3. #3
    Join Date
    Jun 2011
    Posts
    6

    Question Re: Sequence of Window Events in MFC

    You mean that I implement all the overridable methods, and then set breakpoints on each of them, and then take notes which one got called first, and which one was second, and so on?

    Shouldn't this behavior already be documented somewhere?

  4. #4
    Join Date
    May 2002
    Location
    Lindenhurst, NY
    Posts
    867

    Re: Sequence of Window Events in MFC

    Documentation is here:

    msdn.com

    The section on MDI is here:
    MSDN Library -> Windows Development -> Windows Application UI Development -> Windows and Messages -> Multiple Document Interface (MDI)

    Heres the direct link:
    http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx

  5. #5
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Sequence of Window Events in MFC

    Quote Originally Posted by piedpiper View Post
    You mean that I implement all the overridable methods, and then set breakpoints on each of them, and then take notes which one got called first, and which one was second, and so on?

    Shouldn't this behavior already be documented somewhere?
    No, I meant just step through it. No need to implement anything and only one breakpoint required.

Tags for this Thread

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