473,395 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to receive message sent from another window?

Hello, guys.

In my application, I need to receive a windows message from another
window, and the other window is a MFC application using SendMessage to
send a custom windows message. So, in my c# application how can I
receive the message? (I know the message identifier in c#
application.)

Thanks.

Dec 18 '06 #1
2 3112
Hooyoo wrote:
In my application, I need to receive a windows message from another
window, and the other window is a MFC application using SendMessage to
send a custom windows message. So, in my c# application how can I
receive the message? (I know the message identifier in c#
application.)
Override the form's WndProc.

(You should be able to find code that will let you mark a method as
[Message(32123)] and then automatically invoke it when message 32123
comes in. For example, my Chapter15\WndProc project in the big zip at
www.midnightbeach.com/.net/source.code - though I'm sure you can find
a smaller, more targeted source for the functionality.)

--

..NET 2.0 for Delphi Programmers
www.midnightbeach.com/.net
What you need to know.
Dec 18 '06 #2
Thank you, got it.
Jon Shemitz wrote:
Hooyoo wrote:
In my application, I need to receive a windows message from another
window, and the other window is a MFC application using SendMessage to
send a custom windows message. So, in my c# application how can I
receive the message? (I know the message identifier in c#
application.)

Override the form's WndProc.

(You should be able to find code that will let you mark a method as
[Message(32123)] and then automatically invoke it when message 32123
comes in. For example, my Chapter15\WndProc project in the big zip at
www.midnightbeach.com/.net/source.code - though I'm sure you can find
a smaller, more targeted source for the functionality.)

--

.NET 2.0 for Delphi Programmers
www.midnightbeach.com/.net
What you need to know.
Dec 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Mosher | last post by:
Hello all, is there any way to send php variables to another popup html window? I just want users to be able to click on a hyperlink like this... e.g., <a target=new...
3
by: eddie wang | last post by:
I have an the following asp. How to have this asp to open in another window when it is called? Thanks! <% something %> *** Sent via Developersdex http://www.developersdex.com *** Don't...
1
by: Christian Perthen | last post by:
Hi, How can I trigger a reload in another window. Basically, I have a main page with link to a pop-up window. When closing the pop-up window I would like to have the main page reloaded...
6
by: harvie wang | last post by:
Hi, How to send a message to every window(include child window), I use SendMessage ,but It can't do that. class frmA { public const int WM_test = 0x400 + 1; protected override void...
3
by: Nevyn Twyll | last post by:
I've got a web form with a number of dropdowns, combos, etc. When the user submits the form, I want to redirect them to another form, but I need to pop it in another window. So, I have a hyperlink...
4
by: astromac | last post by:
I'm new to php and was wondering if the following was possible... I would like to have a list of items loaded from a text file, process each item in the list and then return the processed result...
1
by: Jeff Williams | last post by:
I have an application using dial monitors which is used in an aution room. The auctioneer has a form showing details of the current lot number. As he changes to the next lot number I need to...
4
by: MichaelK | last post by:
Hello. I have all data already collected on the current page? I want to open another window with the form, fill the fields and submit that form. So basically the question is how can I fill all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.