I want to subclass an MDI window and have the ability to get the handle of the newly created window before it appears. So far I can subclass the window and detect every time a window is about to be created, but I don't know how to get that window's handle.

To find out when an MDI form is being created, I subclass the WM_MDICREATE message, although just plain old WM_CREATE seems to work just fine as well.

Any suggestions on how I can get the newly created MDI window handle??

Thanks,
Jordan