-
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
-
I tried what you suggested - the wp returns zero, and the lp returns some number, but it's not the newly created
MDI child window's handle. :( Any ideas? (I want to be able to get the handle before it actually appears)
Thanks,
Jordan
-
Are you using CreateWindowEx to create them? Or are you loading them through VB?
-
I'm actually using a 3rd party global subclassing tool (Spyworks). I'm subclassing the AOL MDI using WM_MDICREATE
and that notifies me just fine when the window is about to be created. What I really need though is the handle of the
window thats being created so I can hack the window however I see fit before its displayed. :)
Thanks Megatron
-
wow topics get buried quick around here ;)