Tuesday, July 28, 2009

What event will be issued to the MDIChild when the MDIParent form gets deactivated?

The below sample C# code is to capture something when our UI form is issuing specific event (in this sample, I have captured close event of the specific form).





private const int WM_CLOSE = 0x0010;


protected override void WndProc(ref Message m)





{





if ( (m.Msg == WM_CLOSE) )





{





//do our own work





}





}








My Qyery:





What event will be issued to the MDIChild (Constant), when the MDIParent form (this is the main form in the whole application) gets deactivated?

What event will be issued to the MDIChild when the MDIParent form gets deactivated?
It's probably "DestroyWindow" which in turn calls other window messages depending on what you're trying to do...you should ask this on a C++ forum like devshed or codeguru to get a better answer. To really see the messages, though you need to use Spy++


No comments:

Post a Comment