switch(msg){
// Window is being created
case WM_CREATE:
//Return it to make sure it works properly and displays the error messages
return 0;
// And then break the switch statement for efficiency factors.
break;
case WM_CLOSE:
// see if the window is closes
PostQuitMessage(1);
// if so send a message to the window telling it to close
return 0;
// check for errors
break;
// break it again
Sorry I forgot to put the arrow, but the line is the one that starts out with SetTextColor. It is only used ounce in the whole source, should not be hard to find.