This site is no longer active and is available for archival purposes only. Registration and login is disabled.

PPC2002 (X) on applications


Postby Dan East » Feb 23, 2002 @ 8:14pm

You could get it to work as follows:
When you receive WM_NCACTIVATE, create a timer say for 5 seconds. If you receive a WM_ACTIVATE message look at what HWND is gaining activation, and decide if you want your app to close or not. That would also solve the problem of allowing the user to switch to other apps without closing your app (you reported that a WM_ACTIVATE is not received when the "close" button is clicked). Set a flag based on that info. In your timer handler, which will be triggered 5 seconds after WM_NCACTIVATE, only close your app based on the setting of your flag.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby RICoder » Feb 25, 2002 @ 6:59am

It's called <A HREF="http://www.microsoft.com/mobile/developer/technicalarticles/whatsnew2002.asp">Smart Minimize</A>.

Of course, they don't tell you HOW to take advantage of it...so I will have to figure that out on my own.
<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Postby Dan East » Feb 25, 2002 @ 3:01pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Digby » Feb 25, 2002 @ 5:27pm

These are all the messages that my window proc receives when I click on the 'x' on an iPaq 3870:

WM_WINDOWPOSCHANGED, wParam = 00000000, lParam = 2A0721A8
WM_SIZE, wParam = 00000001, lParam = 014000F0
WM_CANCELMODE, wParam = 00000000, lParam = 00000000
WM_NCACTIVATE, wParam = 00000000, lParam = 00000000
WM_ACTIVATE, wParam = 00000000, lParam = 00000000
WM_KILLFOCUS, wParam = 00000000, lParam = 00000000
WM_IME_SETCONTEXT, wParam = 00000000, lParam = C000000F
WM_IME_NOTIFY, wParam = 00000001, lParam = 00000000
Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Postby RICoder » Feb 25, 2002 @ 5:33pm

<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Postby RICoder » Feb 25, 2002 @ 5:36pm

<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Postby Dan East » Feb 25, 2002 @ 6:43pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby JohnE » Feb 25, 2002 @ 8:56pm

JohnE
pm Member
 
Posts: 14
Joined: Feb 18, 2002 @ 4:24pm


Postby RICoder » Feb 25, 2002 @ 10:51pm

I caught onto the WM_SIZE thing myself. It happens whenever you switch to another app. So, there it is. The (X) is just a minimize button.

BTW, I just re-installed VS6.0 whilst I was poking around the forum. It gets done and asks if you want to reboot, usually I say yes, but I said no so I could type this. Then it says that installation was not successful becuase I did not click yes. THEN a new dialog pops up and says 'The system must be restarted for the Installation Wizard to proceed. The system will now restart.' No 'cancel', just 'ok'. I find that humorous.
<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Postby RICoder » Feb 27, 2002 @ 7:14am

Just in case anyone still cares, it is WM_SIZE, with a SIZE_MINIMIZED wParam.

I actually stumbled across it in the documentation, but not through the index or a search. It is in the contents somewhere.

I am using it now, as I have a dialog box that is not a dialog box...or something. :)
<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Previous

Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum