English 中文(简体)
WM_ACTIVATEAPP onWindows Mobile 6
原标题:WM_ACTIVATEAPP on Windows Mobile 6

There s WM_ACTIVATEAPP message on "desktop Windows":

Sent when a window belonging to a different application than the active window is about to be activated. The message is sent to the application whose window is being activated and to the application whose window is being deactivated.

视窗移动是否有类似之处? WM_ACTIVATE不能使用,因为我的申请有多个窗口。

我需要<条码>WM_ACTIVATEAPP(或类似内容),因为我愿意要求/请一些耗电资源(GPS,背光等),然后才能启动/启动。

最佳回答

I think WM_ACTIVATEAPP is not supported on windows mobile. To detect when app is activated/deactivated you can capture WM_ACTIVATE message. As per MSDN documentation, hWndPrevious i.e. lParam will always be NULL when the window being activated and the window being deactivated are in separate processes. Following post makes use of same concept to address this issue. Hope this helps you. http://social.msdn.microsoft.com/forums/en-US/vssmartdevicesnative/thread/3fbe52b6-a895-4470-8cfe-c3d86a58fd73/

问题回答

暂无回答




相关问题
How to read exact number of bytes from a stream (tcp) socket?

In winsock, both the sync recv and the async WSARecv complete as soon as there is data available in a stream socket, regardless of the size specified (which is only the upper limit). This means that ...

AcquireCredentialsHandle returns SEC_E_NO_CREDENTIALS

I created a self-signed certificate (created using OpenSSL) and installed it into the Certificate Store using the Certificates MMC snap-in (CertMgr.msc) on Windows Vista Ultimate. I have managed to ...

Calling Win32 EnumThreadWindows() in C#

I m trying to get a call to EnumThreadWindows working, but I always get a Wrong Parameter-Error, although my code is nearly the same as this example on pinvoke.net. I don t know why this doesn t work: ...

COM Basic links

folks can you provide me the tutorial link or .pdf for learning basic COM?. i do google it.. still i recommend answers of stackoverflow so please pass me.. Thanks

Handling multiple windows WIN32 API

HI I m trying to create an application in the Win32 environment containing more than one window. How do i do that? all the Win32 Tutorials on web i found only showed how to manage one window. How do i ...

Creating a thread in DllMain?

It seems that when a thread is created from within DllMain upon DLL_PROCESS_ATTACH it won t begin until all dll s have been loaded. Since I need to make sure the thread runs before I continue, I get a ...

热门标签