- floppy dialog now uses get_label() for the window title. If no label exists,

get_name() is used.
This commit is contained in:
Volker Ruppert 2003-08-30 17:13:06 +00:00
parent 57a11c5a79
commit 0903de7acd

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: win32dialog.cc,v 1.5 2003-08-23 09:52:26 vruppert Exp $
// $Id: win32dialog.cc,v 1.6 2003-08-30 17:13:06 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
#ifdef WIN32
@ -98,6 +98,7 @@ static BOOL CALLBACK FloppyDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lP
static bx_param_enum_c *status;
static char origpath[MAX_PATH];
char path[MAX_PATH];
char *title;
switch (msg) {
case WM_INITDIALOG:
@ -111,7 +112,9 @@ static BOOL CALLBACK FloppyDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lP
SendMessage(GetDlgItem(hDlg, IDSTATUS), BM_SETCHECK, BST_CHECKED, 0);
}
lstrcpy(origpath, param->getptr());
SetWindowText(hDlg, param->get_name());
title = param->get_label();
if (!title) title = param->get_name();
SetWindowText(hDlg, title);
if (lstrlen(origpath) && lstrcmp(origpath, "none")) {
SetWindowText(GetDlgItem(hDlg, IDPATH), origpath);
}