2020-08-04 12:58:40 +00:00
|
|
|
#pragma once
|
|
|
|
#include "resource.h"
|
2022-09-26 02:31:54 +00:00
|
|
|
#include <Project64\UserInterface\WTLControls\wtl-BitmapPicture.h>
|
2020-08-04 12:58:40 +00:00
|
|
|
|
|
|
|
class WelcomeScreen :
|
|
|
|
public CDialogImpl<WelcomeScreen>
|
|
|
|
{
|
|
|
|
public:
|
2020-11-09 09:12:30 +00:00
|
|
|
BEGIN_MSG_MAP_EX(WelcomeScreen)
|
2022-09-26 02:31:54 +00:00
|
|
|
{
|
|
|
|
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog);
|
|
|
|
MSG_WM_CTLCOLORSTATIC(OnCtlColorStatic);
|
|
|
|
MSG_WM_ERASEBKGND(OnEraseBackground);
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_SELECT_GAME_DIR, SelectGameDir);
|
|
|
|
COMMAND_ID_HANDLER(IDOK, OnOkCmd);
|
|
|
|
}
|
2020-08-04 12:58:40 +00:00
|
|
|
END_MSG_MAP()
|
|
|
|
|
2022-09-26 02:31:54 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
IDD = IDD_Welcome
|
|
|
|
};
|
|
|
|
|
2020-08-04 12:58:40 +00:00
|
|
|
WelcomeScreen(void);
|
|
|
|
|
|
|
|
private:
|
2022-09-26 02:31:54 +00:00
|
|
|
WelcomeScreen(const WelcomeScreen &);
|
|
|
|
WelcomeScreen & operator=(const WelcomeScreen &);
|
2020-08-04 12:58:40 +00:00
|
|
|
|
|
|
|
void SelectGameDir(UINT Code, int id, HWND ctl);
|
|
|
|
|
|
|
|
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL & bHandled);
|
2022-09-26 02:31:54 +00:00
|
|
|
LRESULT OnCtlColorStatic(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL & bHandled);
|
2021-03-01 09:38:29 +00:00
|
|
|
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
|
|
|
};
|