diff options
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); |