Commit 5211e49e authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

Load Show/Hide Advanced strings from resources.

parent 34955b95
......@@ -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
......@@ -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);
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment