Hi James,
This monthcal test fails on my win2k box (w2k-sp4-fr) before and after your patch. I did search other similar failure where WM_QUERYNEWPALETTE comes right after the WM_CREATE message but can't find one. So I assume your patch was to fix the failure on my box. But in my case the WM_QUERYNEWPALETTE comes between the two WM_WINDOWPOSCHANGING message.
I was just about to send a patch to fix this just moving your new line a little bit down in the sequence but I prefer to be sure. If there is platforms where WM_QUERYNEWPALETTE comes just after the WM_CREATE message I can leave it here and add a new optional one between the two WM_WINDOWPOSCHANGING messages, it won't hurt.
regards, Nicolas