From c920fe38a19013b99f3f74e48da9724fb053c212 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sun, 9 Jul 2023 20:59:16 +0100 Subject: support building from VC++ IDE, add resources --- src/T2OpenningWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/T2OpenningWindow.cpp') diff --git a/src/T2OpenningWindow.cpp b/src/T2OpenningWindow.cpp index ee1cb40..6ed5e4e 100644 --- a/src/T2OpenningWindow.cpp +++ b/src/T2OpenningWindow.cpp @@ -1,3 +1,4 @@ +#include "StdAfx.h" #include "Bitmap.h" #include "T2.h" #include "T2OpenningWindow.h" @@ -28,9 +29,11 @@ T2OpenningWindow::T2OpenningWindow() { } BEGIN_MESSAGE_MAP(T2OpenningWindow, CFrameWnd) + //{{AFX_MSG_MAP(T2OpenningWindow) ON_WM_PAINT() ON_WM_LBUTTONDOWN() ON_WM_ERASEBKGND() + //}}AFX_MSG_MAP END_MESSAGE_MAP() void T2OpenningWindow::ShowOpenningWindow() { @@ -52,7 +55,7 @@ void T2OpenningWindow::ShowOpenningWindow() { ShowWindow(SW_SHOW); SetActiveWindow(); - PlaySound(MAKEINTRESOURCE(1), AfxGetInstanceHandle(), SND_ASYNC | SND_NOWAIT | SND_RESOURCE); + PlaySound(MAKEINTRESOURCE(ID_OPENING_SOUND), AfxGetInstanceHandle(), SND_ASYNC | SND_NOWAIT | SND_RESOURCE); T2_APP->app_vfB4(); DWORD startTick = GetTickCount(); @@ -102,7 +105,7 @@ void T2OpenningWindow::OnPaint() { CDC newDC; CBitmap bitmap; - bitmap.LoadBitmap(175); + bitmap.LoadBitmap(IDB_SPLASH_SCREEN); newDC.CreateCompatibleDC(&dc); newDC.SelectObject(&bitmap); -- cgit v1.2.3