"Hongbo Ni" hongbo@njstar.com wrote:
Changes since TRY2 - thanks to Dmitry Timoshkov for advice.
- adds extra bulitin classes: ScrollBar,Message,DDEMLEvent & all #327xx;
- make sure created hwnd is valid;
- more tests for unicodeness of built-in-class window before subclassing;
- add more todo_wine for those extra classes without subclassing.
Tested on Windows Vista SP1, XP SP3.
+#include "windows.h"
Please avoid windows.h (include everything) inclusion, find an appropriate set of smaller include files instead, winnls.h in this case.
The test looks good to me. it passes for me under XP SP3 (32 bit), and Vista SP1 x64 (native 64-bit and emulated 32-bit modes), although in order to pass in 64-bit mode I had to apply the following patch
-#define IS_WNDPROC_HANDLE(x) (((ULONG_PTR)(x) >> 16) == (~((ULONG_PTR)0) >> 16)) +#define IS_WNDPROC_HANDLE(x) (((ULONG_PTR)(x) >> 16) == ((~(ULONG)0) >> 16))
but that's not your fault.