 |
|
|
|
| Author |
Message |
richgreen83
Joined: 22 Feb 2008 Posts: 2
|
Posted: Fri Feb 22, 2008 5:44 am Post subject: RegisterWindowMessage Help |
|
|
Hi,
I am using embedded visual basic 3 and pocket pc 2002.
I am trying to get my application to communicate with another app, so
that it sends a message when it is opened and closed.
I found out about RegisterWindowMessage and GetMessage but am unsure
about how to use them.
Would someone be able to give me some advice on their usage,
preferably with some examples?
Thanks
Richard
Archived from group: microsoft>public>pocketpc>developer |
|
| Back to top |
|
 |
Joćo_Paulo_Figueira
Joined: 31 Oct 2007 Posts: 5
|
Posted: Fri Feb 22, 2008 4:20 pm Post subject: Re: RegisterWindowMessage Help |
|
|
You must use RegisterWindowMessage on both applications to create a
system-wide unique windows message identifier. You do this by providing the
same string as the parameter to RegisterWindowMessage on both applications.
The receiver application processes this message on the main window message
loop, just like any regular windows message. The sender application must
find the receiver window using FindWindow and then using a simple
SendMessage call to the returned HWND.
Joćo Paulo Figueira
wrote in message @z17g2000hsg.googlegroups.com...
> Hi,
>
> I am using embedded visual basic 3 and pocket pc 2002.
>
> I am trying to get my application to communicate with another app, so
> that it sends a message when it is opened and closed.
>
> I found out about RegisterWindowMessage and GetMessage but am unsure
> about how to use them.
>
> Would someone be able to give me some advice on their usage,
> preferably with some examples?
>
> Thanks
> Richard |
|
| Back to top |
|
 |
user
Joined: 15 Aug 2007 Posts: 459
|
Posted: Fri Feb 22, 2008 11:06 am Post subject: Re: RegisterWindowMessage Help |
|
|
You're probably better off just trying to use a named system event
(CreateEvent).
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
wrote in message @z17g2000hsg.googlegroups.com...
> Hi,
>
> I am using embedded visual basic 3 and pocket pc 2002.
>
> I am trying to get my application to communicate with another app, so
> that it sends a message when it is opened and closed.
>
> I found out about RegisterWindowMessage and GetMessage but am unsure
> about how to use them.
>
> Would someone be able to give me some advice on their usage,
> preferably with some examples?
>
> Thanks
> Richard |
|
| Back to top |
|
 |
richgreen83
Joined: 22 Feb 2008 Posts: 2
|
Posted: Tue Feb 26, 2008 11:54 am Post subject: Re: RegisterWindowMessage Help |
|
|
Thanks,
I've managed to figure out and implement RegisterWindowMessage and
Postmessage, but I still can't figure out how to detect the sent
messages from the 2nd application.
Also, how do I find and set the window handles of each app using evb3
so I know where to send the messages? |
|
| Back to top |
|
 |
user
Joined: 15 Aug 2007 Posts: 459
|
Posted: Tue Feb 26, 2008 2:55 pm Post subject: Re: RegisterWindowMessage Help |
|
|
I've not looked at eVB in many years, and I've tried to forget everything I
once knew about the language. Why are you developing and/or improving
applications using it? It's like writing a desktop application in VB 4.
In answer to your specific question, to get handles you could call the
FindWindow API. I don't think you can enumerate in eVB - can't recall if
the plumbing is available for that.
--
Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com
wrote in message @e23g2000prf.googlegroups.com...
> Thanks,
>
> I've managed to figure out and implement RegisterWindowMessage and
> Postmessage, but I still can't figure out how to detect the sent
> messages from the 2nd application.
>
> Also, how do I find and set the window handles of each app using evb3
> so I know where to send the messages?
|
|
| Back to top |
|
 |
|
|
| Related Topics: | WM 2003 SE iPaq 2215 new user question Hi, I am currently waiting for the arrival of my new iPaq 2215 and I am wondering aout posts that I have seen about WM 2003 Second Edition. Is this definately being released for iPaq's like the 2215 or is it only going to be on the newly released models?
low memory at startup Hi, after a soft reset the free programm memory is reduced on many devices to less than 8 MB RAM for nearly half a minute. Especially on HTC3450. After a soft reset there are only 4-5 MB of free RAM. After waiting for nearly 20-30 seconds the memory growt
Survey If anyone is interested in participating in our survey on: "Would you be interested in a opt-in SMS message sent to your device about accessories for your Pocket PC Phone or Smart Phone?" Please click here to participate Thanks
Connection Manager issue in Windows Mobile 5.0 PPC Hi, I am working on a PPC device, which supports GPRS and WiFi connectivity. With both GPRS and WiFi connected, I run my application on WiFi. Later, when I disconnect GPRS externally, my application stops returning a data connection failure. Note: I am no
PALM - TREO 650 FOR SALE!! I have a palm treo 650 for sale..... $350. preowned! |
|
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 vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|