A preliminar question: how do you create your main window? MODAL or MODELESS?
If MODAL, it will have automatic behave driven by Windows. Modal windows are like message box windows.
If MODELESS, you will have more precise control and more precise events will occur.
Ciao
Eros
Bookmarks