[ui] better bad blocks reports

* improved status bar printout (priority messages with timeout)
* report with abort/retry/cancel on bad block detection
* also MinGW warning fixes
This commit is contained in:
Pete Batard 2011-12-08 00:22:13 +00:00
parent f93a85ab83
commit b006e6a837
8 changed files with 85 additions and 45 deletions

View file

@ -76,12 +76,18 @@ enum user_message_type {
};
/* Custom notifications */
enum MessageType {
enum notification_type {
MSG_INFO,
MSG_WARNING,
MSG_ERROR
};
/* Timers used throughout the program */
enum timer_id {
PRINTSTATUS_TIMER_ID = 0x1000,
BADBLOCK_TIMER_ID
};
/* File system indexes in our FS combobox */
// TODO: FormatEx should support "NTFS", "FAT", "FAT32", "UDF", and "EXFAT" as per
// http://msdn.microsoft.com/en-us/library/windows/desktop/aa819439.aspx
@ -124,7 +130,7 @@ extern RUFUS_DRIVE_INFO SelectedDrive;
*/
extern const char *WindowsErrorString(void);
extern void DumpBufferHex(void *buf, size_t size);
extern void PrintStatus(const char *format, ...);
extern void PrintStatus(unsigned int duration, const char *format, ...);
extern const char* StrError(DWORD error_code);
extern void CenterDialog(HWND hDlg);
extern void CreateStatusBar(void);