--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote: > > handler for the "draw background" message. > > Hooking wm_erasebkgd (sp?) may help with some programs. Maybe > that is how Window Blinds works (if it even does this). But other > programs, like PowerPro for its bars, actually draw the background > in wm_paint. And I don't think you can override that without > breaking the program's functionality.
I'd be willing to put up with an implementation that worked "sometimes", so wm_erasebkgd would be OK with me. If that didn't work, I can't imagine anything working short of the application implementing it itself. > The PowerPro dll ppro.dll is injected by Windows global hook > processing, and PowerPro does do some sneaky things using this > injection, such as accessing the current directory of a program, > by calling the windows api from within that process through the > injected dll (the call to get currect directly of a process only > works from within that process AFAIK). But the *window stuff does > not rely on the this. Of course, it cannot repaint backgrounds > either! Would this mean that a PowerPro plugin could subclass an application window, on the back of the existing injection scheme, or would it need to do its own injection? I'm still not sure I'm up to coding it, but if the infrastructure's there for me, it might be worth a try :-) Thanks, Paul.
