while(GetMessage(&msg , NULL , 0 , 0) < 0) {

boolじゃないからな