Nope it's an entirely new window class. I've just found that using a normal function, ie, not a member of any class, as the window procedure, works fine. Anyway here's the code.

Lol I just realized that the code is mostly based on the code from your site Ken.

At the moment the code should work, because I changed the window class to use the non-member window procedure.