mirror of
https://github.com/reactos/reactos.git
synced 2025-04-05 21:21:33 +00:00
[EVENTVWR]
- Replace hard-coded column names by string resources. svn path=/trunk/; revision=47856
This commit is contained in:
parent
fe430b6d23
commit
e946994785
17 changed files with 252 additions and 25 deletions
|
@ -757,6 +757,7 @@ InitInstance(HINSTANCE hInstance,
|
|||
{
|
||||
HIMAGELIST hSmall;
|
||||
LVCOLUMNW lvc = {0};
|
||||
WCHAR szTemp[256];
|
||||
|
||||
hInst = hInstance; // Store instance handle in our global variable
|
||||
|
||||
|
@ -820,39 +821,75 @@ InitInstance(HINSTANCE hInstance,
|
|||
// Now set up the listview with its columns.
|
||||
lvc.mask = LVCF_TEXT | LVCF_WIDTH;
|
||||
lvc.cx = 90;
|
||||
lvc.pszText = L"Type";
|
||||
LoadStringW(hInstance,
|
||||
IDS_COLUMNTYPE,
|
||||
szTemp,
|
||||
sizeof(szTemp) / sizeof(WCHAR));
|
||||
lvc.pszText = szTemp;
|
||||
(void)ListView_InsertColumn(hwndListView, 0, &lvc);
|
||||
|
||||
lvc.cx = 70;
|
||||
lvc.pszText = L"Date";
|
||||
LoadStringW(hInstance,
|
||||
IDS_COLUMNDATE,
|
||||
szTemp,
|
||||
sizeof(szTemp) / sizeof(WCHAR));
|
||||
lvc.pszText = szTemp;
|
||||
(void)ListView_InsertColumn(hwndListView, 1, &lvc);
|
||||
|
||||
lvc.cx = 70;
|
||||
lvc.pszText = L"Time";
|
||||
LoadStringW(hInstance,
|
||||
IDS_COLUMNTIME,
|
||||
szTemp,
|
||||
sizeof(szTemp) / sizeof(WCHAR));
|
||||
lvc.pszText = szTemp;
|
||||
(void)ListView_InsertColumn(hwndListView, 2, &lvc);
|
||||
|
||||
lvc.cx = 150;
|
||||
lvc.pszText = L"Source";
|
||||
LoadStringW(hInstance,
|
||||
IDS_COLUMNSOURCE,
|
||||
szTemp,
|
||||
sizeof(szTemp) / sizeof(WCHAR));
|
||||
lvc.pszText = szTemp;
|
||||
(void)ListView_InsertColumn(hwndListView, 3, &lvc);
|
||||
|
||||
lvc.cx = 100;
|
||||
lvc.pszText = L"Category";
|
||||
LoadStringW(hInstance,
|
||||
IDS_COLUMNCATEGORY,
|
||||
szTemp,
|
||||
sizeof(szTemp) / sizeof(WCHAR));
|
||||
lvc.pszText = szTemp;
|
||||
(void)ListView_InsertColumn(hwndListView, 4, &lvc);
|
||||
|
||||
lvc.cx = 60;
|
||||
lvc.pszText = L"Event";
|
||||
LoadStringW(hInstance,
|
||||
IDS_COLUMNEVENT,
|
||||
szTemp,
|
||||
sizeof(szTemp) / sizeof(WCHAR));
|
||||
lvc.pszText = szTemp;
|
||||
(void)ListView_InsertColumn(hwndListView, 5, &lvc);
|
||||
|
||||
lvc.cx = 120;
|
||||
lvc.pszText = L"User";
|
||||
LoadStringW(hInstance,
|
||||
IDS_COLUMNUSER,
|
||||
szTemp,
|
||||
sizeof(szTemp) / sizeof(WCHAR));
|
||||
lvc.pszText = szTemp;
|
||||
(void)ListView_InsertColumn(hwndListView, 6, &lvc);
|
||||
|
||||
lvc.cx = 100;
|
||||
lvc.pszText = L"Computer";
|
||||
LoadStringW(hInstance,
|
||||
IDS_COLUMNCOMPUTER,
|
||||
szTemp,
|
||||
sizeof(szTemp) / sizeof(WCHAR));
|
||||
lvc.pszText = szTemp;
|
||||
(void)ListView_InsertColumn(hwndListView, 7, &lvc);
|
||||
|
||||
lvc.cx = 0;
|
||||
lvc.pszText = L"Event Data";
|
||||
LoadStringW(hInstance,
|
||||
IDS_COLUMNEVENTDATA,
|
||||
szTemp,
|
||||
sizeof(szTemp) / sizeof(WCHAR));
|
||||
lvc.pszText = szTemp;
|
||||
(void)ListView_InsertColumn(hwndListView, 8, &lvc);
|
||||
|
||||
ShowWindow(hwndMainWindow, nCmdShow);
|
||||
|
|
|
@ -83,8 +83,21 @@ BEGIN
|
|||
CONTROL "&Думи",IDC_WORDRADIO,"Button",BS_AUTORADIOBUTTON,85,194,33,10
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_APP_TITLE "Преглед на събития"
|
||||
IDC_EVENTSTRINGIDNOTFOUND "Не е намерено описанието на събитие ( %lu ) в източник ( %s ). Възможно е местият компютър да няма нужните сведения в регистъра или DLL файловет, нужни за показване на съобщения от отдалечен компютър."
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -102,3 +102,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "Erfolgreich"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "Unbekanntes Ereignis"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Typ"
|
||||
IDS_COLUMNDATE "Datum"
|
||||
IDS_COLUMNTIME "Zeit"
|
||||
IDS_COLUMNSOURCE "Quelle"
|
||||
IDS_COLUMNCATEGORY "Kategorie"
|
||||
IDS_COLUMNEVENT "Ereignis"
|
||||
IDS_COLUMNUSER "Benutzer"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Ereignisdaten"
|
||||
END
|
||||
|
|
|
@ -102,3 +102,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "Επιτυχία"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "’γνωστο συμβάν"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -102,3 +102,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "Success"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "Unknown Event"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
|
@ -102,3 +102,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "Acierto"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "Evento Desconocido"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -102,3 +102,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "Succès"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "Événement Inconnu"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -102,3 +102,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "Successo"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "Evento sconosciuto"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -102,3 +102,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "成功"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "不明なイベント"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -98,3 +98,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "성공"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "알려지지 않은 이벤트"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -102,3 +102,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "Suksess"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "Ukjent hendelse"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -106,3 +106,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "Sukces"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "Zdarzenie nieznane"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -102,3 +102,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "Succes"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "Eveniment necunoscut"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -102,3 +102,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "<22><><EFBFBD><EFBFBD><EFBFBD>"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -99,3 +99,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "Úspech" //Success
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "Neznáma udalos<6F>"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -102,3 +102,16 @@ BEGIN
|
|||
IDC_EVENTLOG_SUCCESS "<22><><EFBFBD><EFBFBD><EFBFBD>"
|
||||
IDC_EVENTLOG_UNKNOWN_TYPE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_COLUMNTYPE "Type"
|
||||
IDS_COLUMNDATE "Date"
|
||||
IDS_COLUMNTIME "Time"
|
||||
IDS_COLUMNSOURCE "Source"
|
||||
IDS_COLUMNCATEGORY "Category"
|
||||
IDS_COLUMNEVENT "Event"
|
||||
IDS_COLUMNUSER "User"
|
||||
IDS_COLUMNCOMPUTER "Computer"
|
||||
IDS_COLUMNEVENTDATA "Event Data"
|
||||
END
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by eventvwr.rc
|
||||
//
|
||||
#define IDC_MYICON 2
|
||||
#define IDNEXT 3
|
||||
#define IDD_EVENTVWR_DIALOG 102
|
||||
|
@ -54,14 +50,13 @@
|
|||
#define IDM_REFRESH 32782
|
||||
#define IDC_STATIC -1
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NO_MFC 1
|
||||
#define _APS_NEXT_RESOURCE_VALUE 133
|
||||
#define _APS_NEXT_COMMAND_VALUE 32783
|
||||
#define _APS_NEXT_CONTROL_VALUE 1012
|
||||
#define _APS_NEXT_SYMED_VALUE 110
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define IDS_COLUMNTYPE 300
|
||||
#define IDS_COLUMNDATE 301
|
||||
#define IDS_COLUMNTIME 302
|
||||
#define IDS_COLUMNSOURCE 303
|
||||
#define IDS_COLUMNCATEGORY 304
|
||||
#define IDS_COLUMNEVENT 305
|
||||
#define IDS_COLUMNUSER 306
|
||||
#define IDS_COLUMNCOMPUTER 307
|
||||
#define IDS_COLUMNEVENTDATA 308
|
||||
|
|
Loading…
Reference in a new issue