How do I get the WndProc Result in WPF? | Programming, .NET, Silverlight & More

How do I get the WndProc Result in WPF?

In .NET you can get WndProc messages in a message class. In this class there is a Result Proporty. In WPF I cannot use this class. To override the WndProc in WPF you need to use.

In VB
Private Function WndProc(ByVal hwnd As IntPtr, ByVal msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr, ByRef handled As Boolean) As IntPtr

End Function

In C#
private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
{

}

There is no Result here. Is there an other method to override WndProc in WPF?

http://huddledmasses.org/tag/wndproc/

No TweetBacks yet. (Be the first to Tweet this post)

2 Responses

  1. colanth Says:

    The function returns an IntPtr
    References :

  2. dhvrm Says:

    http://huddledmasses.org/tag/wndproc/
    References :

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.