mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:25:41 +00:00
get version number to display from RES_STR_PRODUCT_VERSION
svn path=/trunk/; revision=10374
This commit is contained in:
parent
22147c5757
commit
08cf5682c3
2 changed files with 6 additions and 9 deletions
|
@ -31,6 +31,7 @@ endif
|
||||||
ifeq ($(UNICODE),1)
|
ifeq ($(UNICODE),1)
|
||||||
CFLAGS += -DUNICODE
|
CFLAGS += -DUNICODE
|
||||||
# LFLAGS+= -Wl,--entry,_wWinMain@16
|
# LFLAGS+= -Wl,--entry,_wWinMain@16
|
||||||
|
RCFLAGS += -DUNICODE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CXXFLAGS = $(CFLAGS)
|
CXXFLAGS = $(CFLAGS)
|
||||||
|
|
|
@ -299,6 +299,9 @@ void BackgroundWindow::DrawDesktopBkgnd(HDC hdc)
|
||||||
DeleteBrush(bkgndBrush);
|
DeleteBrush(bkgndBrush);
|
||||||
*/
|
*/
|
||||||
if (_display_version) {
|
if (_display_version) {
|
||||||
|
static const String s_bkgnd_txt = ResString(IDS_EXPLORER_VERSION_STR) + TEXT("\nby Martin Fuchs");
|
||||||
|
|
||||||
|
FmtString txt(s_bkgnd_txt, (LPCTSTR)ResString(IDS_VERSION_STR));
|
||||||
ClientRect rect(_hwnd);
|
ClientRect rect(_hwnd);
|
||||||
|
|
||||||
rect.left = rect.right - 280;
|
rect.left = rect.right - 280;
|
||||||
|
@ -306,22 +309,15 @@ void BackgroundWindow::DrawDesktopBkgnd(HDC hdc)
|
||||||
rect.right = rect.left + 250;
|
rect.right = rect.left + 250;
|
||||||
rect.bottom = rect.top + 40;
|
rect.bottom = rect.top + 40;
|
||||||
|
|
||||||
#ifdef _ROS_
|
|
||||||
#include <reactos/buildno.h>
|
|
||||||
#else
|
|
||||||
#include "../buildno.h"
|
|
||||||
#endif
|
|
||||||
static const LPCTSTR BkgndText = TEXT("ReactOS ")TEXT(KERNEL_VERSION_STR)TEXT(" Explorer\nby Martin Fuchs");
|
|
||||||
|
|
||||||
BkMode bkMode(hdc, TRANSPARENT);
|
BkMode bkMode(hdc, TRANSPARENT);
|
||||||
|
|
||||||
TextColor textColor(hdc, RGB(128,128,192));
|
TextColor textColor(hdc, RGB(128,128,192));
|
||||||
DrawText(hdc, BkgndText, -1, &rect, DT_RIGHT);
|
DrawText(hdc, txt, -1, &rect, DT_RIGHT);
|
||||||
|
|
||||||
SetTextColor(hdc, RGB(255,255,255));
|
SetTextColor(hdc, RGB(255,255,255));
|
||||||
--rect.right;
|
--rect.right;
|
||||||
++rect.top;
|
++rect.top;
|
||||||
DrawText(hdc, BkgndText, -1, &rect, DT_RIGHT);
|
DrawText(hdc, txt, -1, &rect, DT_RIGHT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue