win32.c
changeset 5311 109d82ecab59
parent 5310 4bb8cfc73019
child 5312 ce01037b54f1
equal deleted inserted replaced
5310:4bb8cfc73019 5311:109d82ecab59
   221 {
   221 {
   222 	SaveOrLoad("crash.sav", SL_SAVE);
   222 	SaveOrLoad("crash.sav", SL_SAVE);
   223 	return true;
   223 	return true;
   224 }
   224 }
   225 
   225 
       
   226 /* Disable the crash-save submit code as it's not used */
       
   227 #if 0
       
   228 
   226 typedef struct {
   229 typedef struct {
   227 	HINTERNET (WINAPI *InternetOpen)(LPCTSTR,DWORD, LPCTSTR, LPCTSTR, DWORD);
   230 	HINTERNET (WINAPI *InternetOpen)(LPCTSTR,DWORD, LPCTSTR, LPCTSTR, DWORD);
   228 	HINTERNET (WINAPI *InternetConnect)(HINTERNET, LPCTSTR, INTERNET_PORT, LPCTSTR, LPCTSTR, DWORD, DWORD, DWORD);
   231 	HINTERNET (WINAPI *InternetConnect)(HINTERNET, LPCTSTR, INTERNET_PORT, LPCTSTR, LPCTSTR, DWORD, DWORD, DWORD);
   229 	HINTERNET (WINAPI *HttpOpenRequest)(HINTERNET, LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR *, DWORD, DWORD);
   232 	HINTERNET (WINAPI *HttpOpenRequest)(HINTERNET, LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR *, DWORD, DWORD);
   230 	BOOL (WINAPI *HttpSendRequest)(HINTERNET, LPCTSTR, DWORD, LPVOID, DWORD);
   233 	BOOL (WINAPI *HttpSendRequest)(HINTERNET, LPCTSTR, DWORD, LPVOID, DWORD);
   318 error2:
   321 error2:
   319 	free(mem);
   322 	free(mem);
   320 error1:
   323 error1:
   321 	CloseHandle(h);
   324 	CloseHandle(h);
   322 }
   325 }
       
   326 
       
   327 #endif /* Disabled crash-submit procedures */
   323 
   328 
   324 static const TCHAR * const _expand_texts[] = {_T("S&how report >>"), _T("&Hide report <<") };
   329 static const TCHAR * const _expand_texts[] = {_T("S&how report >>"), _T("&Hide report <<") };
   325 
   330 
   326 static void SetWndSize(HWND wnd, int mode)
   331 static void SetWndSize(HWND wnd, int mode)
   327 {
   332 {
   379 						MessageBox(wnd, _save_succeeded, _T("Save successful"), MB_ICONINFORMATION);
   384 						MessageBox(wnd, _save_succeeded, _T("Save successful"), MB_ICONINFORMATION);
   380 					} else {
   385 					} else {
   381 						MessageBox(wnd, _T("Save failed"), _T("Save failed"), MB_ICONINFORMATION);
   386 						MessageBox(wnd, _T("Save failed"), _T("Save failed"), MB_ICONINFORMATION);
   382 					}
   387 					}
   383 					break;
   388 					break;
       
   389 /* Disable the crash-save submit code as it's not used */
       
   390 #if 0
   384 				case 14: { /* Submit crash report */
   391 				case 14: { /* Submit crash report */
   385 					const TCHAR *s;
   392 					const TCHAR *s;
   386 
   393 
   387 					SetCursor(LoadCursor(NULL, IDC_WAIT));
   394 					SetCursor(LoadCursor(NULL, IDC_WAIT));
   388 
   395 
   403 					}
   410 					}
   404 					EnableWindow(GetDlgItem(wnd, 14), FALSE);
   411 					EnableWindow(GetDlgItem(wnd, 14), FALSE);
   405 					SetCursor(LoadCursor(NULL, IDC_ARROW));
   412 					SetCursor(LoadCursor(NULL, IDC_ARROW));
   406 					MessageBox(wnd, _T("Crash report submitted. Thank you."), _T("Crash Report"), MB_ICONINFORMATION);
   413 					MessageBox(wnd, _T("Crash report submitted. Thank you."), _T("Crash Report"), MB_ICONINFORMATION);
   407 				}	break;
   414 				}	break;
       
   415 #endif /* Disabled crash-submit procedures */
   408 				case 15: /* Expand window to show crash-message */
   416 				case 15: /* Expand window to show crash-message */
   409 					_expanded ^= 1;
   417 					_expanded ^= 1;
   410 					SetWndSize(wnd, _expanded);
   418 					SetWndSize(wnd, _expanded);
   411 					break;
   419 					break;
   412 			}
   420 			}