hi everyone,

is it allowed to put a 'return' statement in the 1st
line of wndProc(), to 'disable' it?

marco

Re: 'return' statement in wndProc() by Igor

Igor
Sat Jun 23 21:24:03 CDT 2007

"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



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
>



Re: 'return' statement in wndProc() by Igor

Igor
Sat Jun 23 22:29:39 CDT 2007

"marco RTYpe 6" <rebel-6-out@planet.nl> wrote in message
news:467dd8e0$0$25480$ba620dc5@text.nova.planet.nl
> what paramater values do i pass to DefWndProc() to have
> a correct process?

The same that were passed to your window proc. Just pass them along, and
return whatever DefWindowProc returns.
--
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



Re: 'return' statement in wndProc() by marco

marco
Sat Jun 23 23:07:16 CDT 2007

TNX Igor!

RTYpe 6

'life is a sequence of inconsequences, leading to a decrease in entropy,
resulting into a white hole into another multiverse,
with totally a-typical physical entities and quantities....'
(me)




"Igor Tandetnik" <itandetnik@mvps.org> schreef in bericht
news:eOGxjChtHHA.3364@TK2MSFTNGP02.phx.gbl...
> "marco RTYpe 6" <rebel-6-out@planet.nl> wrote in message
> news:467dd8e0$0$25480$ba620dc5@text.nova.planet.nl
>> what paramater values do i pass to DefWndProc() to have
>> a correct process?
>
> The same that were passed to your window proc. Just pass them along, and
> return whatever DefWindowProc returns.
> --
> 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
>