mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Don't use hardcoded strings in the configuration message box. Use string resources instead.
svn path=/trunk/; revision=29135
This commit is contained in:
parent
1e19b02082
commit
1c85a28f50
4 changed files with 36 additions and 12 deletions
|
@ -0,0 +1,8 @@
|
|||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
IDS_DESCRIPTION "Default ScreenSaver"
|
||||
IDS_TITLE "About"
|
||||
IDS_TEXT "No options need to be set."
|
||||
END
|
|
@ -1,2 +1,4 @@
|
|||
|
||||
#define IDS_DESCRIPTION 1
|
||||
#define IDS_TITLE 2
|
||||
#define IDS_TEXT 3
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
#include "resource.h"
|
||||
|
||||
#define APPNAME _T("Scrnsave")
|
||||
|
||||
|
@ -151,6 +152,28 @@ void ParseCommandLine(PSTR szCmdLine, int *chOption, HWND *hwndParent)
|
|||
*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,
|
||||
HINSTANCE hPrev,
|
||||
LPSTR lpCmdLine,
|
||||
|
@ -179,10 +202,7 @@ int WINAPI WinMain (HINSTANCE hInst,
|
|||
|
||||
case 'c':
|
||||
default:
|
||||
MessageBox(0,
|
||||
_T("No options need to be set."),
|
||||
_T("About"),
|
||||
MB_OK | MB_ICONWARNING);
|
||||
Configure();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,10 +10,4 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
|||
|
||||
#include <reactos/version.rc>
|
||||
|
||||
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
IDS_DESCRIPTION "Default ScreenSaver"
|
||||
END
|
||||
#include "lang/en-US.rc"
|
||||
|
|
Loading…
Reference in a new issue