Re: 'return' statement in wndProc() by marco
marco
Sat Jun 23 21:37:00 CDT 2007
igor,
what paramater values do i pass to DefWndProc() to have
a correct process?
"Igor Tandetnik" <itandetnik@mvps.org> schreef in bericht
news:%23EOe4agtHHA.1204@TK2MSFTNGP03.phx.gbl...
> "marco RTYpe 6" <rebel-6-out@planet.nl> wrote in message
> news:467dd24c$0$25498$ba620dc5@text.nova.planet.nl
>> is it allowed to put a 'return' statement in the 1st
>> line of wndProc(), to 'disable' it?
>
> Yes, but such a window will misbehave in strange ways (none of the
> "standard" window functionality would work). Instead, call DefWindowProc
> as the first line, to revert to plain-vanilla stock Windows behavior.
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
>