[SHELL32] Show Product version on About dialog bmp (#3621)

The About dialog banner will now show the correspondent Product version selected on install.
This will make it easier to tell which edition of ReactOS is installed.
This commit is contained in:
Catalin Gabriel Draghita 2021-05-08 08:54:32 +02:00 committed by GitHub
parent 83dbb6b27e
commit 2636cff09f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 1805 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 132 KiB

View file

@ -1,5 +1,7 @@
IDB_REACTOS BITMAP "res/bitmaps/reactos.bmp"
IDB_LINEBAR BITMAP "res/bitmaps/line.bmp"
IDB_REACTOS BITMAP "res/bitmaps/reactos.bmp"
IDB_REACTOS_WORKSTATION BITMAP "res/bitmaps/reactosworkstation.bmp"
IDB_REACTOS_SERVER BITMAP "res/bitmaps/reactosserver.bmp"
IDB_LINEBAR BITMAP "res/bitmaps/line.bmp"
IDB_DLG_BG BITMAP "res/bitmaps/dlg_bg.bmp"
IDB_REACTOS_FLAG BITMAP "res/bitmaps/reactos_flag.bmp"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

View file

@ -28,6 +28,8 @@
/* Bitmaps */
#define IDB_REACTOS 131
#define IDB_REACTOS_WORKSTATION 400
#define IDB_REACTOS_SERVER 401
#define IDB_LINEBAR 138
#define IDB_SHELL_IEXPLORE_LG 204
#define IDB_SHELL_IEXPLORE_LG_HOT 205

View file

@ -45,6 +45,7 @@
#include <reactos/version.h>
#include <reactos/buildno.h>
#include <versionhelpers.h>
WINE_DEFAULT_DEBUG_CHANNEL(shell);
const char * const SHELL_Authors[] = { "Copyright 1993-"COPYRIGHT_YEAR" WINE team", "Copyright 1998-"COPYRIGHT_YEAR" ReactOS Team", 0 };
@ -1158,7 +1159,16 @@ static INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM
WCHAR szAuthorsText[20];
// Preload the ROS bitmap
hLogoBmp = (HBITMAP)LoadImage(shell32_hInstance, MAKEINTRESOURCE(IDB_REACTOS), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR);
if (IsWindowsServer())
{
// Load Server Bitmap
hLogoBmp = (HBITMAP)LoadImage(shell32_hInstance, MAKEINTRESOURCE(IDB_REACTOS_SERVER), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR);
}
else
{
// Load Workstation Bitmap
hLogoBmp = (HBITMAP)LoadImage(shell32_hInstance, MAKEINTRESOURCE(IDB_REACTOS_WORKSTATION), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR);
}
hLineBmp = (HBITMAP)LoadImage(shell32_hInstance, MAKEINTRESOURCE(IDB_LINEBAR), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR);
if(hLogoBmp && hLineBmp)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB