[ui] add a status bar button to initiate checksum computation

* Just click the "hash" sign to get a hash
* Also clean up status bar related functions
This commit is contained in:
Pete Batard 2015-06-30 23:22:10 +01:00
parent e0422f4596
commit 14b8ab6a43
6 changed files with 82 additions and 53 deletions

View file

@ -297,7 +297,7 @@ static void print_extracted_file(char* psz_fullpath, int64_t i_file_length)
uprintf("Extracting: %s\n", psz_fullpath);
safe_sprintf(&psz_fullpath[nul_pos], 24, " (%s)", SizeToHumanReadable(i_file_length, FALSE, FALSE));
// TODO: I don't think we need both of these...
SendMessageLU(GetDlgItem(hMainDialog, IDC_STATUS), SB_SETTEXTW, SBT_OWNERDRAW, psz_fullpath);
SendMessageLU(hStatus, SB_SETTEXTW, SBT_OWNERDRAW | SB_SECTION_LEFT, psz_fullpath);
PrintStatus(0, MSG_000, psz_fullpath); // MSG_000 is "%s"
// ISO9660 cannot handle backslashes
for (i=0; i<nul_pos; i++)