none
java.awt.EventQueue in .NET

    Question

  • Hi All,

    The way we can hook into the EventQueue in Java to grab all the events being thrown by the application, is there an alternate to do the same in .NET?

    Especially given that I need to trap the events thrown by a C++ application, which is running under context of a C# application. Any hint/help in this direction would be of immense help.

    Thanks,
    Rajiv

    Thursday, June 01, 2006 12:35 PM

All replies

  • From MSDN, Control class:
    protected virtual void WndProc (
    	ref Message m
    )
    Processes Windows messages.

    All messages are sent to the WndProc method after getting filtered through the PreProcessMessage method.

    The WndProc method corresponds exactly to the Windows WindowProc function. For more information about processing Windows messages, see the WindowProc function documentation in the Windows Platform SDK reference located in the MSDN library at http://msdn.microsoft.com/library.

    Notes to Inheritors Inheriting controls should call the base class's WndProc method to process any messages that they do not handle.

    Thursday, June 01, 2006 1:31 PM