project64/Source/Project64/UserInterface/SupportWindow.h

51 lines
1.8 KiB
C
Raw Normal View History

2016-08-11 10:38:45 +00:00
#pragma once
2020-10-22 02:11:19 +00:00
#include <Project64\UserInterface\WTLControls\wtl-BitmapPicture.h>
#include "resource.h"
2016-08-11 10:38:45 +00:00
class CSupportWindow :
public CDialogImpl<CSupportWindow>
{
public:
BEGIN_MSG_MAP_EX(CSettingConfig)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
MESSAGE_HANDLER(WM_CTLCOLORSTATIC, OnColorStatic)
MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBackground)
MESSAGE_HANDLER(WM_TIMER, OnTimer)
COMMAND_RANGE_HANDLER(IDOK, IDCANCEL, OnCloseCmd)
COMMAND_ID_HANDLER(ID_SUPPORT_PJ64, OnSupportProject64)
COMMAND_ID_HANDLER(IDC_ENTER_CODE, OnEnterCode)
END_MSG_MAP()
enum { IDD = IDD_Support_Project64 };
2020-10-22 02:11:19 +00:00
CSupportWindow(CProjectSupport & Support);
2016-08-11 10:38:45 +00:00
~CSupportWindow(void);
2020-10-22 02:11:19 +00:00
void Show(HWND hParent, bool Delay);
2016-08-11 10:38:45 +00:00
private:
2020-10-22 02:11:19 +00:00
CSupportWindow();
CSupportWindow(const CSupportWindow&);
CSupportWindow& operator=(const CSupportWindow&);
2016-08-11 10:38:45 +00:00
LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
LRESULT OnColorStatic(UINT /*uMsg*/, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnEraseBackground(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& bHandled);
LRESULT OnTimer(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& /*bHandled*/);
LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
LRESULT OnSupportProject64(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
LRESULT OnEnterCode(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
void EnableContinue();
CHyperLink m_EnterLink;
static void CALLBACK TimerProc(HWND, UINT, UINT_PTR idEvent, DWORD);
2020-10-22 02:11:19 +00:00
CProjectSupport & m_Support;
CBitmapPicture m_Logo;
bool m_Delay;
uint32_t m_TimeOutTime;
HWND m_hParent;
2016-08-11 10:38:45 +00:00
static CSupportWindow * m_this;
};