2020-08-04 12:58:40 +00:00
|
|
|
#pragma once
|
|
|
|
#include <Project64\UserInterface\WTLControls\wtl-BitmapPicture.h>
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
class WelcomeScreen :
|
|
|
|
public CDialogImpl<WelcomeScreen>
|
|
|
|
{
|
|
|
|
public:
|
2020-11-09 09:12:30 +00:00
|
|
|
BEGIN_MSG_MAP_EX(WelcomeScreen)
|
2020-08-04 12:58:40 +00:00
|
|
|
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
|
2021-03-01 09:38:29 +00:00
|
|
|
MSG_WM_CTLCOLORSTATIC(OnCtlColorStatic)
|
|
|
|
MSG_WM_ERASEBKGND(OnEraseBackground)
|
2020-08-04 12:58:40 +00:00
|
|
|
COMMAND_ID_HANDLER_EX(IDC_SELECT_GAME_DIR, SelectGameDir)
|
|
|
|
COMMAND_ID_HANDLER(IDOK, OnOkCmd)
|
|
|
|
END_MSG_MAP()
|
|
|
|
|
2020-11-09 09:12:30 +00:00
|
|
|
enum { IDD = IDD_Welcome };
|
2020-08-04 12:58:40 +00:00
|
|
|
|
|
|
|
WelcomeScreen(void);
|
|
|
|
|
|
|
|
private:
|
|
|
|
WelcomeScreen(const WelcomeScreen&);
|
|
|
|
WelcomeScreen& operator=(const WelcomeScreen&);
|
|
|
|
|
|
|
|
void SelectGameDir(UINT Code, int id, HWND ctl);
|
|
|
|
|
|
|
|
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL & bHandled);
|
2021-03-01 09:38:29 +00:00
|
|
|
LRESULT OnCtlColorStatic(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
|
|
|
HBRUSH OnCtlColorStatic(CDCHandle dc, CStatic wndStatic);
|
|
|
|
BOOL OnEraseBackground(CDCHandle dc);
|
2020-08-04 12:58:40 +00:00
|
|
|
LRESULT OnOkCmd(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL & bHandled);
|
|
|
|
|
|
|
|
static int CALLBACK SelectDirCallBack(HWND hwnd, DWORD uMsg, DWORD lp, DWORD lpData);
|
|
|
|
|
|
|
|
CBitmapPicture m_Logo;
|
2021-03-17 08:33:52 +00:00
|
|
|
};
|