I created a simple PPC mfc app (single document, no document/view architecture support)
I built .exe without editting, and downloaded it to iPAQ PPC
I started the app, then clicked <X> button on the up-right corner to exit the app
Then I went to settings/memory/running programs, and my app was still on the Running Program List
why it's still running ? any harm
what need to be done in the code to make it auto-stop

I had another dialog based PPC mfc, after I clicked the <ok> button on the up-right corner to exit
the app was no longer listed on Running Program List.
Why it's <ok> button for dialog based mfc ap
and <x> button for single document mfc app

Thanks !

Re: <ok> and <x> button for exit ? by Norman

Norman
Fri Feb 20 19:50:00 CST 2004

su wrote:

> I created a simple PPC mfc app (single document, no document/view architecture support).
> I built .exe without editting, and downloaded it to iPAQ PPC.
> I started the app, then clicked <X> button on the up-right corner to exit the app.
> Then I went to settings/memory/running programs, and my app was still on the Running Program List -
> why it's still running ? any harm?
> what need to be done in the code to make it auto-stop?
>
> I had another dialog based PPC mfc, after I clicked the <ok> button on the up-right corner to exit,
> the app was no longer listed on Running Program List.
> Why it's <ok> button for dialog based mfc app
> and <x> button for single document mfc app?
>
>
> Thanks !
When Microsoft got into the PDA business they decided that user would
never close applications; they would just go on to another and then
another... And if memory ever started getting full, the OS would close
some of the older applications to make room for new ones.

This is why the Microsoft Logo guidelines for PalmSize PC and Pocket PC
say that there must be no visible way to close an application.

However, people really do want to close applications: they have learned
from experience with "big" Windows that the system slows down if you
have too many applications open. So Microsoft decided to allow
applications to have a close button (X) just like "big" Windows.

But, since Microsoft knows that people REALLY DON'T want to close their
applications, the (X) button really isn't a close button. Instead of
sending a WM_SYSCOMMAND / SC_CLOSE message, it sends a WM_SYSCOMMAND /
SC_MINIMIZE message so the application disappears from the screen. It's
not closed (because people don't really want to do that) but it looks
like it's closed (because people think they want to close applications.

The OK button on a dialog, however, sends a WM_COMMAND / IDOK message
and most people write dialogs so that they close after handling that
message. And if closing the dialog means that the application closes,
then it's really closed.

Norm


Re: <ok> and <x> button for exit ? by anonymous

anonymous
Mon Feb 23 09:26:11 CST 2004

Thanks !