Correct "WindowProc" return value in a Win32 application

The MSDN Win32-Api documentation ( http://msdn.microsoft.com/en-us/library/ms633573%28VS.85%29.aspx ) WindowProcstates: The return value is the result of message processing and depends on the message sent.

Since I have to perform this procedure (callback), I would like to know what it depends on and what I should return. Can someone shed some light on this?

+5
source share
2 answers

It depends on the exact message you are processing. You need to consult the documentation for this post to see the expected values ​​and return values.

, WM_CREATE, , , -1, . WM_GETICON .

, , DefWindowProc, proc .

+8

, , 0. , . MSDN, .

+3

All Articles