[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: chained wndprocs?
From: lawson_whitney () juno ! com
Date: 2000-11-29 10:38:38
[Download RAW message or body]
On Wed, 29 Nov 2000, Marcus Meissner wrote:
> >
> > Wine provides for a chain of wndproc's, but I can't see any provision
to
> > use any but the first.
>
> Huh? WINE does not chain wndprocs by itself. It is usually done by mfc
or
> the application itself.
>
> They query the old windowproc and set their own one.
>
> appWndProc(hwnd,uMsg,wParam,lParam) {
> switch (uMsg) {
> ... do stuff for some messages ...
> default:
> return oldWndProc(hwnd,uMsg,wParam,lParam);
> }
> }
>
> where they do
> oldWndPorc=SetWindowLong(hwnd,GWL_WNDPROC,appWndProc);
> (the call returns the old value).
>
> The whole process is called 'subclassing' under windows I seem to
remember ;)
>
> Ciao, Marcus
>
Okay, thanks, that makes more sense of it. Except that mfc _isn't_
calling the class wnd proc, at least not enough to touch a winedbg
breakpoint. I don't know for sure this app would work in m$windows
either.
Lawson
---cut here
________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today! For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic