2016-08-11 10:38:45 +00:00
|
|
|
#pragma once
|
2020-10-22 02:11:19 +00:00
|
|
|
#include "resource.h"
|
2022-09-26 02:31:54 +00:00
|
|
|
#include <Project64\UserInterface\WTLControls\wtl-BitmapPicture.h>
|
2016-08-11 10:38:45 +00:00
|
|
|
|
|
|
|
class CSupportWindow :
|
|
|
|
public CDialogImpl<CSupportWindow>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
BEGIN_MSG_MAP_EX(CSettingConfig)
|
2022-09-26 02:31:54 +00:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|
2016-08-11 10:38:45 +00:00
|
|
|
END_MSG_MAP()
|
|
|
|
|
2022-09-26 02:31:54 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
IDD = IDD_Support_Project64
|
|
|
|
};
|
2016-08-11 10:38:45 +00:00
|
|
|
|
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();
|
2022-09-26 02:31:54 +00:00
|
|
|
CSupportWindow(const CSupportWindow &);
|
|
|
|
CSupportWindow & operator=(const CSupportWindow &);
|
|
|
|
|
|
|
|
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*/);
|
2016-08-11 10:38:45 +00:00
|
|
|
|
|
|
|
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;
|
2021-03-17 08:33:14 +00:00
|
|
|
};
|