Submitted by Anonymous on Wed, 10/09/2002 - 19:24. Developers
I need to capture the event that occurs when the user clicks the X in the top right corner of the TopLevel Window. I have been able to call XmNpopupDownCallback for shell Windows and dialogs; however, this is not working for the TopLevel.
Thanks in advance for the help.
C. Lamb
Sounds like you want to catch the WM_DELETE_WINDOW message from the window manager. See the discussion in the comp.windows.x and comp.windows.x.motif FAQ lists for how to do this (with extra information on how to use Motif WindowShell callbacks to set a response).