My program gets a WM_QUERYENDSESSION...

F

Frank

My program gets a WM_QUERYENDSESSION message and asks the user if it is OK
to shutdown.

While he's thinking about it, Windows displays a box saying the program is
not responding.

If the user clicks Cancel the shutdown is canceled.

My program receives a WM_ENDSESSION message and tells the user that the
shutdown has been canceled.

All OK except that my message box from the WM_QUERYENDSESSION is still being
displayed.

I can't come up with a procedure that is better than this.


Is it possible for me to close the messagebox?

Any suggestions?


Thanks
 
S

Steve Alpert

Look on the web (codeguru and others) for replacement messagebox code. There
are some that you can modify to allow you to close it. (see XMessageBox by Hans
Dietrich).

/steveA
 
F

Frank

Thanks, I'll look right now


Steve Alpert said:
Look on the web (codeguru and others) for replacement messagebox code.
There are some that you can modify to allow you to close it. (see
XMessageBox by Hans Dietrich).

/steveA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top