diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-09 20:59:16 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-09 20:59:16 +0100 |
commit | c920fe38a19013b99f3f74e48da9724fb053c212 (patch) | |
tree | 6bb036fd3f61b85daceb26f74378eadcdd977db1 /src/T2OpenningWindow.cpp | |
parent | 96a63139221587c6be9659c1e07eacd3a8e7f048 (diff) | |
download | t2win-c920fe38a19013b99f3f74e48da9724fb053c212.tar.gz t2win-c920fe38a19013b99f3f74e48da9724fb053c212.zip |
support building from VC++ IDE, add resources
Diffstat (limited to 'src/T2OpenningWindow.cpp')
-rw-r--r-- | src/T2OpenningWindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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); |