Load Show/Hide Advanced strings from resources.
This commit is contained in:
parent
34955b9578
commit
5211e49e29
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue