Home > Archive > Smartphone Developer Forum > March 2006 > app switching event..
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
app switching event..
|
|
| Vishuonline 2006-03-26, 7:05 pm |
| Hi,
I have an app that uses directshow on WM5. After my app launches, I run a
graph to display a viewfinder of the embedded camera. My app's functionality
and stuff is fine; but I want to detect an event when my application gets
swapped with another application. I tried to use WM_ACTIVATE but its not
reliable because I get a WM_ACTIVATE message (with parameter values which say
my window is going into background) when the directshow renderer get focus
for displaying frames.
Is there a reliable way for me to get notified when my app gets swapped out?
Best
| |
| Tim Wallace 2006-03-27, 7:05 pm |
| Check to see if the renderer has focus when you receive the WM_ACTIVATE for
losing focus. If not, you know your application is not active.
Tim Wallace
"Vishuonline" <Vishuonline@discussions.microsoft.com> wrote in message
news:3B71822F-E55F-4EED-8A8D-D5C1A49571F5@microsoft.com...
> Hi,
>
> I have an app that uses directshow on WM5. After my app launches, I run a
> graph to display a viewfinder of the embedded camera. My app's
> functionality
> and stuff is fine; but I want to detect an event when my application gets
> swapped with another application. I tried to use WM_ACTIVATE but its not
> reliable because I get a WM_ACTIVATE message (with parameter values which
> say
> my window is going into background) when the directshow renderer get focus
> for displaying frames.
>
> Is there a reliable way for me to get notified when my app gets swapped
> out?
>
> Best
|
|
|
|
|