Marco Bizzarri m.bizzarri@icube.it writes:
While looking at the source code of wine, I looked into the synopsys of the CallWindowProc function. According to winproc.c, the hWnd parameter should be the handle to the window which has to receive the message.
OTOH, if you look at MSDN, at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/hh/wi...
it looks like the hWnd is the windows procedure which should receive the message.
hWnd is clearly a window handle, not a window procedure. As a rule, any resemblance between what MSDN says and what the code actually does is purely fortuitous.