hThread1=CreateThread(NULL,0,(LPVOID)fnThread1,hWnd,0,NULL);
つーか、今の時代にCreateThread?