Issues with WM_PAINT - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Issues with WM_PAINT (/showthread.php?tid=76416) Issues with WM_PAINT by matty on 07-30-2007 at 05:51 PM
I have now only come to realize the issue with WM_PAINT message being captured. If you register the WM_PAINT message and don't return it to the window, it actually will prevent WLM from repainting as well. quote: However none of the other Messages are processed on a Process Wide basis (it seems). RE: Issues with WM_PAINT by Patchou on 07-30-2007 at 06:06 PM in WM_PAINT ytou need to call stuff like BeginPaint() if you don't want to break Windows. RE: Issues with WM_PAINT by matty on 07-30-2007 at 06:15 PM
code: Not to be rude, but this seems as more of a work around does it not? RE: Issues with WM_PAINT by CookieRevised on 07-30-2007 at 06:27 PM
When you click on the conversation window, it will normally trigger a WM_PAINT on the previously focussed window, which is the Plus! interface window because it needs to be repainted too since it goes from having the focus to a non-focussed window. quote:No, it is how Windows works. See MSDN library. As I suspected, painting a window requires a whole set of things to do, which on their turn depend on what messages are recieved. So breaking one thing in the chain and nothing happens at all. Since WM_PAINT is blocked from executing in the Plus! interface window. The whole repainting procedure of that window never finishes and thus it also doesn't send out a new WM_PAINT to the new focussed window. Hence the convo window isn't repainted. If you use Spy++ you will also notice that Windows constantly tries to repaint the Plus! window (WM_PAINT is constantly send in a loop), but it constantly fails (because you trapped the WMP_PAINT message of the Plus! window from finishing). RE: Issues with WM_PAINT by matty on 07-30-2007 at 06:40 PM
Ok I understand the sequence now makes a lot more sence, merci cookie wookie! |