Skip to content

Commit 80b60fc

Browse files
committed
Add version text to config GUI
1 parent 341d29e commit 80b60fc

8 files changed

Lines changed: 16 additions & 0 deletions

config/openwithexconfig.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
HKEY g_hKey = NULL;
77

8+
#define WIDE_(str) L ## str
9+
#define WIDE(str) WIDE_(str)
10+
811
INT_PTR CALLBACK ConfigDlgProc(
912
HWND hWnd,
1013
UINT uMsg,
@@ -24,6 +27,12 @@ INT_PTR CALLBACK ConfigDlgProc(
2427
ComboBox_AddString(hwndCombo, L"Windows 2000");
2528
ComboBox_AddString(hwndCombo, L"Windows 95/98/NT 4.0");
2629

30+
WCHAR szFormat[256], szBuffer[256];
31+
GetDlgItemTextW(hWnd, IDD_VERSION, szFormat, ARRAYSIZE(szFormat));
32+
swprintf_s(szBuffer, szFormat, WIDE(VER_STRING));
33+
SetDlgItemTextW(hWnd, IDD_VERSION, szBuffer);
34+
EnableWindow(GetDlgItem(hWnd, IDD_VERSION), FALSE);
35+
2736
DWORD dwStyle = 0;
2837
DWORD dwSize = sizeof(DWORD);
2938
RegQueryValueExW(

config/openwithexconfig.en-US.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ FONT 8, "MS Shell Dlg"
88
{
99
LTEXT "Style:", -1, 7, 7, 183, 8
1010
COMBOBOX IDD_STYLEBOX, 7, 18, 183, 18, CBS_DROPDOWNLIST
11+
LTEXT "OpenWithEx %s", IDD_VERSION, 7, 57, 183, 8
1112
DEFPUSHBUTTON "OK", IDOK, 32, 70, 50, 14
1213
PUSHBUTTON "Cancel", IDCANCEL, 86, 70, 50, 14
1314
PUSHBUTTON "&Apply", IDD_APPLY, 140, 70, 50, 14

config/openwithexconfig.ja-JP.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ FONT 9, "MS UI Gothic"
1212
{
1313
LTEXT "スタイル:", -1, 7, 7, 183, 8
1414
COMBOBOX IDD_STYLEBOX, 7, 18, 183, 18, CBS_DROPDOWNLIST
15+
LTEXT "OpenWithEx %s", IDD_VERSION, 7, 57, 183, 8
1516
DEFPUSHBUTTON "OK", IDOK, 32, 70, 50, 14
1617
PUSHBUTTON "キャンセル", IDCANCEL, 86, 70, 50, 14
1718
PUSHBUTTON "適用(&A)", IDD_APPLY, 140, 70, 50, 14

config/openwithexconfig.ko-KR.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ FONT 9, "굴림"
1010
{
1111
LTEXT "스타일:", -1, 7, 7, 183, 8
1212
COMBOBOX IDD_STYLEBOX, 7, 18, 183, 18, CBS_DROPDOWNLIST
13+
LTEXT "OpenWithEx %s", IDD_VERSION, 7, 57, 183, 8
1314
DEFPUSHBUTTON "확인", IDOK, 32, 70, 50, 16
1415
PUSHBUTTON "취소", IDCANCEL, 86, 70, 50, 16
1516
PUSHBUTTON "적용(&A)", IDD_APPLY, 140, 70, 50, 16

config/openwithexconfig.pl-PL.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ FONT 8, "MS Shell Dlg"
1212
{
1313
LTEXT "Styl:", -1, 7, 7, 183, 8
1414
COMBOBOX IDD_STYLEBOX, 7, 18, 183, 18, CBS_DROPDOWNLIST
15+
LTEXT "OpenWithEx %s", IDD_VERSION, 7, 57, 183, 8
1516
DEFPUSHBUTTON "OK", IDOK, 32, 70, 50, 14
1617
PUSHBUTTON "Anuluj", IDCANCEL, 86, 70, 50, 14
1718
PUSHBUTTON "&Zastosuj", IDD_APPLY, 140, 70, 50, 14

config/openwithexconfig.pt-BR.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ FONT 8, "MS Shell Dlg"
1212
{
1313
LTEXT "Estilo:", -1, 7, 7, 183, 8
1414
COMBOBOX IDD_STYLEBOX, 7, 18, 183, 18, CBS_DROPDOWNLIST
15+
LTEXT "OpenWithEx %s", IDD_VERSION, 7, 57, 183, 8
1516
DEFPUSHBUTTON "OK", IDOK, 32, 70, 50, 14
1617
PUSHBUTTON "Cancelar", IDCANCEL, 86, 70, 50, 14
1718
PUSHBUTTON "&Aplicar", IDD_APPLY, 140, 70, 50, 14

config/openwithexconfig.tr-TR.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ FONT 8, "MS Shell Dlg"
1212
{
1313
LTEXT "Tarz:", -1, 7, 7, 183, 8
1414
COMBOBOX IDD_STYLEBOX, 7, 18, 183, 18, CBS_DROPDOWNLIST
15+
LTEXT "OpenWithEx %s", IDD_VERSION, 7, 57, 183, 8
1516
DEFPUSHBUTTON "Tamam", IDOK, 32, 70, 50, 14
1617
PUSHBUTTON "İptal", IDCANCEL, 86, 70, 50, 14
1718
PUSHBUTTON "&Uygula", IDD_APPLY, 140, 70, 50, 14

config/resource.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
#define IDD_OPENWITHEXCONFIG 200
66
#define IDD_STYLEBOX 201
77
#define IDD_APPLY 202
8+
#define IDD_VERSION 203

0 commit comments

Comments
 (0)