[SNDREC32] Use the ShellAboutW API routine to display the about dialog (#2754)

This commit is contained in:
Kyle Katarn 2020-05-14 14:30:57 +02:00 committed by GitHub
parent 4b479d19e6
commit 82e4efea77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 9 additions and 229 deletions

View file

@ -11,17 +11,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS Záznam zvuku"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "ReactOS Záznam zvuku, verze 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Copyright (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "OK", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "Soubor"

View file

@ -6,17 +6,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Information zum Audiorecorder"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "ReactOS Audiorecorder, Version 1.0", IDC_STATIC, 56, 16, 134, 8, SS_NOPREFIX
LTEXT "Copyright (C) 2009", IDC_STATIC, 56, 25, 134, 8
DEFPUSHBUTTON "OK", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "&Datei"

View file

@ -6,17 +6,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Information about ReactOS Sound Recorder"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "ReactOS Sound Recorder, version 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Copyright (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "OK", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "&File"

View file

@ -9,17 +9,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Acerca de la Grabadora de sonidos de ReactOS"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "Grabadora de sonidos de ReactOS, versión 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Copyright (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "Aceptar", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "&Archivo"

View file

@ -6,17 +6,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Information à propos de l'Enregistreur de Son ReactOS"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "Enregistreur de Son ReactOS, version 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Copyright (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "&Accepter", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "&Fichier"

View file

@ -6,18 +6,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_LAYOUTRTL
CAPTION "אודות הרשמקול של ReactOS"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "רשמקול של ReactOS גרסה 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "זכויות יוצרים (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "אישור", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "קובץ"

View file

@ -6,17 +6,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Informazioni su ReactOS Registratore Audio"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "ReactOS Registratore Audio, versione 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Copyright (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "OK", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "File"

View file

@ -6,17 +6,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "サウンド レコーダ に関する情報"
FONT 9, "MS UI Gothic", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "サウンド レコーダ, バージョン 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Copyright (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "OK", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "ファイル"

View file

@ -15,17 +15,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Informacje o Rejestratorze Dźwięku ReactOS"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "Rejestrator Dźwięku ReactOS, wersja 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Prawa autorskie (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "OK", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "Plik"

View file

@ -8,17 +8,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Despre Înregistratorul audio"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "Înregistrator audio, versiunea 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Drept de autor (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "Î&nchide", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "&Fișier"

View file

@ -6,17 +6,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Информация о программе ""Звукозапись для ReactOS"""
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "Звукозапись для ReactOS, версия 1.0", IDC_STATIC, 56, 16, 134, 8, SS_NOPREFIX
LTEXT "Copyright (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "OK", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "&Файл"

View file

@ -11,17 +11,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Čo je reactOS_sndrec32"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "reactOS_sndrec32, verzia 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Autorské práva (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "OK", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "&Súbor"

View file

@ -10,17 +10,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Informacione rreth ReactOS rregjistruesi i zerit"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "ReactOS Rregjistruesi i Zerit, versioni 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "T'drejtat (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "OK", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "File"

View file

@ -8,17 +8,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Information om ReactOS_sndrec32"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "ReactOS_sndrec32, version 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Copyright (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "OK", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "Arkiv"

View file

@ -8,17 +8,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS Ses Kaydedicisi Hakkında Bilgi"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "ReactOS Ses Kaydedicisi, sürüm 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Tekif Hakkı - 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "Tamam", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "&Dosya"

View file

@ -8,17 +8,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Інформація про reactOS_sndrec32"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "reactOS_sndrec32, версії 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "Copyright (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "OK", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "Файл"

View file

@ -8,17 +8,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "关于 ReactOS 录音机"
FONT 9, "宋体", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "ReactOS 录音机,版本 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "版权所有 (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "确定", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "文件"

View file

@ -14,17 +14,6 @@ BEGIN
"/", IDM_ABOUT, ASCII, ALT
END
IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "關於 ReactOS 錄音機"
FONT 9, "新細明體", 0, 0, 0x1
BEGIN
ICON IDI_SNDREC32, -1, 19, 14, 21, 20
LTEXT "ReactOS 錄音機,版本 1.0", IDC_STATIC, 56, 16, 114, 8, SS_NOPREFIX
LTEXT "版權所有 (C) 2009", IDC_STATIC, 56, 25, 114, 8
DEFPUSHBUTTON "確定", IDOK, 139, 54, 50, 14, WS_GROUP
END
IDR_MENU1 MENU
BEGIN
POPUP "檔案"

View file

@ -5,7 +5,6 @@
#define IDD_REACTOS_SNDREC32_DIALOG 102
#define IDS_APP_TITLE 103
#define IDD_ABOUTBOX 103
#define IDM_ABOUT 104
#define IDI_REACTOS_SNDREC32 107
#define IDI_REACTOS_SNDREC32LL 107

View file

@ -78,30 +78,6 @@ RECT text_rect;
RECT text2_rect;
RECT cli;
INT_PTR
CALLBACK
AboutDlgProc(HWND hWnd,
UINT msg,
WPARAM wp,
LPARAM lp)
{
switch (msg)
{
case WM_COMMAND:
switch (LOWORD(wp))
{
case IDOK:
EndDialog(hWnd, 0);
return TRUE;
}
break;
case WM_CLOSE:
EndDialog(hWnd, 0);
return TRUE;
}
return FALSE;
}
int
APIENTRY
_tWinMain(HINSTANCE hInstance,
@ -118,8 +94,8 @@ _tWinMain(HINSTANCE hInstance,
s_info.cbSize = sizeof( NONCLIENTMETRICS );
InitCommonControls();
switch (GetUserDefaultUILanguage())
switch (GetUserDefaultUILanguage())
{
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
SetProcessDefaultLayout(LAYOUT_RTL);
@ -455,6 +431,8 @@ WndProc(HWND hWnd,
HFONT font;
HFONT oldfont;
long long slid_samp = 0;
WCHAR szAppName[100];
HICON hIcon;
/* Checking for global pointers to buffer and io audio devices */
if ((!AUD_IN) || (!AUD_OUT) || (!AUD_BUF))
@ -469,7 +447,7 @@ WndProc(HWND hWnd,
/* Creating the wave bar */
if (!InitInstance_wave(hWnd, hInst, SW_SHOWNORMAL))
{
MessageBox(0, TEXT("CreateWindow() Error!"), TEXT("ERROR"), MB_ICONERROR);
MessageBox(0, TEXT("InitInstance_wave() Error!"), TEXT("ERROR"), MB_ICONERROR);
return FALSE;
}
@ -619,8 +597,10 @@ WndProc(HWND hWnd,
break;
case ID_ABOUT:
DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, AboutDlgProc);
return TRUE;
LoadStringW(hInst, IDS_APP_TITLE, szAppName, _countof(szAppName));
hIcon = LoadIconW(hInst, MAKEINTRESOURCEW(IDI_REACTOS_SNDREC32));
ShellAboutW(hWnd, szAppName, L"\0", hIcon);
DestroyIcon(hIcon);
break;
case ID_FILE_SAVEAS: