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.
WindowProc
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?
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 .
, , 0. , . MSDN, .
0