Sunday, January 24, 2016
CF How to realize sending and receiving messages
Language C #, the callback function pointed to the need to handle, how to automatically receive after the message is sent?
Namely how to achieve the DefWndProc
X86/// Rewrite the form of message processing function
protected override void DefWndProc (ref System.Windows.Forms.Message m)
{
switch (m.Msg)
{
// Receive a custom message USER, and display its parameters
case Note.USER:
string message = string.Format ("Received message!
parameters are: {0}, {1} ", m.WParam, m.LParam);
MessageBox.Show (message);
break;
default:
base.DefWndProc (ref m);
break;
}
//Console.WriteLine(m.LParam);
}
Reply:
I do not know, csdn be closed down, Jietie it Sectional gave me
Reply:
Open source OpenNETCF
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment