mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 23:28:15 +00:00
Don't use hardcoded strings in the configuration message box. Use string resources instead.
svn path=/trunk/; revision=29137
This commit is contained in:
parent
761e858982
commit
847464262c
|
@ -0,0 +1,8 @@
|
||||||
|
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||||
|
|
||||||
|
STRINGTABLE DISCARDABLE
|
||||||
|
BEGIN
|
||||||
|
IDS_DESCRIPTION "Starfield ScreenSaver"
|
||||||
|
IDS_TITLE "About"
|
||||||
|
IDS_TEXT "No options need to be set."
|
||||||
|
END
|
|
@ -1 +1,4 @@
|
||||||
#define IDS_DESCRIPTION 1
|
|
||||||
|
#define IDS_DESCRIPTION 1
|
||||||
|
#define IDS_TITLE 2
|
||||||
|
#define IDS_TEXT 3
|
||||||
|
|
|
@ -315,6 +315,27 @@ void ParseCommandLine(PSTR szCmdLine, int *chOption, HWND *hwndParent)
|
||||||
*hwndParent = 0;
|
*hwndParent = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Configure(void)
|
||||||
|
{
|
||||||
|
TCHAR szTitle[256];
|
||||||
|
TCHAR szText[256];
|
||||||
|
|
||||||
|
LoadString(hInstance,
|
||||||
|
IDS_TITLE,
|
||||||
|
szTitle,
|
||||||
|
256);
|
||||||
|
|
||||||
|
LoadString(hInstance,
|
||||||
|
IDS_TEXT,
|
||||||
|
szText,
|
||||||
|
256);
|
||||||
|
|
||||||
|
MessageBox(0,
|
||||||
|
szText,
|
||||||
|
szTitle,
|
||||||
|
MB_OK | MB_ICONWARNING);
|
||||||
|
}
|
||||||
|
|
||||||
int WINAPI WinMain (HINSTANCE hInst,
|
int WINAPI WinMain (HINSTANCE hInst,
|
||||||
HINSTANCE hPrev,
|
HINSTANCE hPrev,
|
||||||
LPSTR lpCmdLine,
|
LPSTR lpCmdLine,
|
||||||
|
@ -343,10 +364,7 @@ int WINAPI WinMain (HINSTANCE hInst,
|
||||||
|
|
||||||
case 'c':
|
case 'c':
|
||||||
default:
|
default:
|
||||||
MessageBox(0,
|
Configure();
|
||||||
_T("No options need to be set."),
|
|
||||||
_T("About"),
|
|
||||||
MB_OK | MB_ICONWARNING);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,4 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||||
|
|
||||||
#include <reactos/version.rc>
|
#include <reactos/version.rc>
|
||||||
|
|
||||||
|
#include "lang/en-US.rc"
|
||||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|
||||||
|
|
||||||
STRINGTABLE DISCARDABLE
|
|
||||||
BEGIN
|
|
||||||
IDS_DESCRIPTION "Starfield ScreenSaver"
|
|
||||||
END
|
|
||||||
|
|
Loading…
Reference in a new issue