I figured since it was only in 'for developers' that it would be to include in the default wizards, and not for downloaidng and usage. I haven't even toucghed the new project things, I usually make everything from scratch. I'll check it out now then...
--edit--
Looks good. What's the point of calling DestroyWindow() explicitly, expecially after the message loop is over?