What happens when closing ? [Archive] - Quintessential Forum

PDA

View Full Version : What happens when closing ?


canard_bleu
05-25-2004, 07:57 AM
I am trying to fix the resumer plugin, and found one of the problems
is the player sets the state to stop before closing, making the resumer
think that the player was stopped at the time QCD was terminated.
(It won't resume next time if the player was stopped on exit).
I believe that before, the player stayed in play when closing (or that at least
the stop came after shutting down the plugin).

Is there any way I can detect that the player is closing at the time
I receive the last stop ?
I tried to catch WM_CLOSE or WM_DESTROY in the window proc, but it didn't work.

Any suggestions ?

Pierre

Paul
05-25-2004, 09:00 PM
Check the STOPFLAG_* that is sent to the plugin's stop function. If it's 'STOPFLAG_SHUTDOWN' you know the player is shutting down.