to make the WndProc into winmain.cpp of ioctrldemo