WindowProc and RegisterWindowMessage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dan Baker

    WindowProc and RegisterWindowMessage

    I am working in C# .Net. I would like to register a windows message (which
    I can do), and then post that message to a second application (which also
    works).

    The question: How can I detect when I received this message in my C# .Net
    application? I'm used to doing this in the "WindowProc " function. Is there
    anything similar to this?

    DanB


  • SimonT

    #2
    RE: WindowProc and RegisterWindowM essage

    You can override the WndProc method in your form :

    protected override void WndProc(ref Message m)
    {
    //Your processing here

    base.WndProc (ref m);
    }

    "Dan Baker" wrote:
    [color=blue]
    > I am working in C# .Net. I would like to register a windows message (which
    > I can do), and then post that message to a second application (which also
    > works).
    >
    > The question: How can I detect when I received this message in my C# .Net
    > application? I'm used to doing this in the "WindowProc " function. Is there
    > anything similar to this?
    >
    > DanB
    >
    >
    >[/color]

    Comment

    Working...