project64/Source/Project64/UserInterface/WelcomeScreen.h

37 lines
1.2 KiB
C
Raw Normal View History

#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)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
2021-03-01 09:38:29 +00:00
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()
2020-11-09 09:12:30 +00:00
enum { IDD = IDD_Welcome };
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);
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
};