Load Show/Hide Advanced strings from resources.

This commit is contained in:
James Hawkins 2005-05-19 11:14:52 +00:00 committed by Alexandre Julliard
parent 34955b9578
commit 5211e49e29
3 changed files with 7 additions and 4 deletions

View File

@ -148,4 +148,6 @@ BEGIN
IDS_TAB_DLLS "Libraries"
IDS_TAB_DRIVES "Drives"
IDS_CHOOSE_PATH "Select the unix directory to be mapped, please."
IDS_HIDE_ADVANCED "Hide Advanced"
IDS_SHOW_ADVANCED "Show Advanced"
END

View File

@ -96,19 +96,18 @@ static void lv_get_item(HWND dialog, LVITEM *item)
static void set_advanced(HWND dialog)
{
int state;
char *text;
char text[256];
RECT rect;
/* FIXME: internationalization */
if (advanced)
{
state = SW_NORMAL;
text = "&Hide Advanced";
LoadString(GetModuleHandle(NULL), IDS_SHOW_ADVANCED, text, 256);
}
else
{
state = SW_HIDE;
text = "&Show Advanced";
LoadString(GetModuleHandle(NULL), IDS_HIDE_ADVANCED, text, 256);
}
ShowWindow(GetDlgItem(dialog, IDC_RADIO_AUTODETECT), state);

View File

@ -28,6 +28,8 @@
#define IDS_TAB_DLLS 3
#define IDS_TAB_DRIVES 4
#define IDS_CHOOSE_PATH 5
#define IDS_SHOW_ADVANCED 6
#define IDS_HIDE_ADVANCED 7
#define IDD_MAINDLG 101
#define IDB_WINE 104
#define IDD_ABOUTCFG 107