Improve new_floppy messageboxes
This commit is contained in:
@@ -515,7 +515,7 @@ static wchar_t fd_file_name[1024];
|
|||||||
|
|
||||||
/* Show a MessageBox dialog. This is nasty, I know. --FvK */
|
/* Show a MessageBox dialog. This is nasty, I know. --FvK */
|
||||||
static int
|
static int
|
||||||
new_floppy_msgbox(HWND hwnd, int type, void *arg)
|
new_floppy_msgbox_header(HWND hwnd, int flags, void *header, void *message)
|
||||||
{
|
{
|
||||||
HWND h;
|
HWND h;
|
||||||
int i;
|
int i;
|
||||||
@@ -523,7 +523,7 @@ new_floppy_msgbox(HWND hwnd, int type, void *arg)
|
|||||||
h = hwndMain;
|
h = hwndMain;
|
||||||
hwndMain = hwnd;
|
hwndMain = hwnd;
|
||||||
|
|
||||||
i = ui_msgbox(type, arg);
|
i = ui_msgbox_header(flags, header, message);
|
||||||
|
|
||||||
hwndMain = h;
|
hwndMain = h;
|
||||||
|
|
||||||
@@ -607,7 +607,7 @@ NewFloppyDialogProcedure(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
//ui_sb_mount_floppy_img(fdd_id, sb_part, 0, fd_file_name);
|
//ui_sb_mount_floppy_img(fdd_id, sb_part, 0, fd_file_name);
|
||||||
floppy_mount(fdd_id, fd_file_name, 0);
|
floppy_mount(fdd_id, fd_file_name, 0);
|
||||||
} else {
|
} else {
|
||||||
new_floppy_msgbox(hdlg, MBX_ERROR, (wchar_t *)IDS_4108);
|
new_floppy_msgbox_header(hdlg, MBX_ERROR, (wchar_t *) IDS_4108, (wchar_t *) IDS_4115);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
/*FALLTHROUGH*/
|
/*FALLTHROUGH*/
|
||||||
@@ -637,7 +637,7 @@ NewFloppyDialogProcedure(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
f = _wfopen(wopenfilestring, L"rb");
|
f = _wfopen(wopenfilestring, L"rb");
|
||||||
if (f != NULL) {
|
if (f != NULL) {
|
||||||
fclose(f);
|
fclose(f);
|
||||||
if (new_floppy_msgbox(hdlg, MBX_QUESTION, (wchar_t *)IDS_4111) != 0) /* yes */
|
if (new_floppy_msgbox_header(hdlg, MBX_QUESTION, (wchar_t *) IDS_4111, (wchar_t *) IDS_4118) != 0) /* yes */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
SendMessage(h, WM_SETTEXT, 0, (LPARAM) wopenfilestring);
|
SendMessage(h, WM_SETTEXT, 0, (LPARAM) wopenfilestring);
|
||||||
|
|||||||
Reference in New Issue
Block a user