case IDCANCEL:
static int CALLBACK LicenceProc(HWND hwnd, UINT msg,				WPARAM wParam, LPARAM lParam){    switch (msg) {      case WM_INITDIALOG:	{	    char *str = dupprintf("%s Licence", appname);	    SetWindowText(hwnd, str);	    sfree(str);	}	return 1;      case WM_COMMAND:	switch (LOWORD(wParam)) {	  case IDOK:	    EndDialog(hwnd, 1);	    return 0;	}	return 0;      case WM_CLOSE:	EndDialog(hwnd, 1);	return 0;    }    return 0;}