Board index » delphi » Delphi LIVE Chat!!!!

Delphi LIVE Chat!!!!

Address correction:

                    http://www.iag.net/~joehen/

_______________________________________________________________

H. L. Arledge
MIS Director
SHERLOCK SOFTWARE..........developers of FORMATIONS FOR DELPHI
                           and DELPHI QUICK&DIRTY.............
Sherl...@gim.net
8386 D Airline Highway
Baton Rouge, LA  70815
(504)924-2511
(504)924-2572 fax
________________________________________________________________

 

Re:Delphi LIVE Chat!!!!


Every Wednesday night from 9:PM to 11:PM (CST) a live chat discussion
"Computer Programming With Delphi" will be FREE to the public at:
                    "http:/www.iag.net/~joehen/".
_______________________________________________________________

H. L. Arledge
MIS Director
SHERLOCK SOFTWARE..........developers of FORMATIONS FOR DELPHI
                           and DELPHI QUICK&DIRTY.............
Sherl...@gim.net
8386 D Airline Highway
Baton Rouge, LA  70815
(504)924-2511
(504)924-2572 fax
________________________________________________________________

Re:Delphi LIVE Chat!!!!


I would like to find out if anyone knows how to intercept the WM_PAINT
message of an application that is not yours.  If you have any code,
that would be a great help.  I know about the SetWindowsHookEx API
call, but I can't get it to trigger my function that I have defined
within my application when the external application gets the WM_PAINT
call.  Any help would be greatly appreciated.  Thanks.

Ted Hung
                                             z
                                       \\// z
                                       ( --)          
------------------------------------oOO-(__)-OOo-----------------

Re:Delphi LIVE Chat!!!!


Quote
laure...@ix.netcom.com wrote:
>I would like to find out if anyone knows how to intercept the WM_PAINT
>message of an application that is not yours.  If you have any code,
>that would be a great help.  I know about the SetWindowsHookEx API
>call, but...

        What you want to do here is some subclassing. You use SetWindowLong
to change the main window procedure for the external application to a
procedure of your own devising (in a dll). You save the address of the
original window procedure and most of the time you just pass the message
to the original procedure with CallWindowProc; when you get a WM_PAINT
message you do whatever.

--
David Ullrich
Don't you guys find it tedious typing the same thing
after your signature each time you post something?
I know I do, but when in Rome...

Other Threads