wm_command
C#
2
Posts
2
Posters
0
Views
1
Watching
-
anyone knows how to catch WM_command messages in C#? an extern application will send such a message to a C# app. thanks in advance, Greetings, Niko
-
anyone knows how to catch WM_command messages in C#? an extern application will send such a message to a C# app. thanks in advance, Greetings, Niko
Override the
WndProc
message of your main form and evaluate theMessage.Msg
property. Example:protected override void WndProc(ref Message m)
{
if (m.Msg == 0x001C)
{
// Caught the WM_ACTIVATEAPP message
}base.WndProc(m);
}