project64/Source/Project64/UserInterface/WelcomeScreen.h

42 lines
1.2 KiB
C
Raw Normal View History

#pragma once
#include "resource.h"
2022-09-26 02:31:54 +00:00
#include <Project64\UserInterface\WTLControls\wtl-BitmapPicture.h>
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);
}
END_MSG_MAP()
2022-09-26 02:31:54 +00:00
enum
{
IDD = IDD_Welcome
};
WelcomeScreen(void);
private:
2022-09-26 02:31:54 +00:00
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);
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);
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
};