2012-03-27 21:20:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "IPropertySheetPage.h"
|
2018-02-24 15:12:40 +00:00
|
|
|
#include "../Tfe/Uilib.h"
|
2022-02-27 17:26:48 +00:00
|
|
|
#include "../Card.h"
|
2012-03-27 21:20:36 +00:00
|
|
|
|
2021-05-19 20:44:33 +00:00
|
|
|
#include <string>
|
|
|
|
|
2012-05-06 22:14:03 +00:00
|
|
|
class CPageConfigTfe : private IPropertySheetPage
|
2012-03-27 21:20:36 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CPageConfigTfe()
|
|
|
|
{
|
|
|
|
CPageConfigTfe::ms_this = this;
|
2022-02-27 17:26:48 +00:00
|
|
|
m_tfe_selected = CT_Empty;
|
2022-05-08 15:26:01 +00:00
|
|
|
m_tfe_virtual_dns = false;
|
2012-03-27 21:20:36 +00:00
|
|
|
}
|
|
|
|
virtual ~CPageConfigTfe(){}
|
|
|
|
|
2021-01-01 12:57:40 +00:00
|
|
|
static INT_PTR CALLBACK DlgProc(HWND window, UINT message, WPARAM wparam, LPARAM lparam);
|
2012-03-27 21:20:36 +00:00
|
|
|
|
2022-02-27 17:26:48 +00:00
|
|
|
SS_CARDTYPE m_tfe_selected;
|
2021-05-19 20:44:33 +00:00
|
|
|
std::string m_tfe_interface_name;
|
2022-05-08 15:26:01 +00:00
|
|
|
bool m_tfe_virtual_dns;
|
2021-05-19 20:44:33 +00:00
|
|
|
|
2012-03-27 21:20:36 +00:00
|
|
|
protected:
|
|
|
|
// IPropertySheetPage
|
2021-01-01 12:57:40 +00:00
|
|
|
virtual INT_PTR DlgProcInternal(HWND window, UINT message, WPARAM wparam, LPARAM lparam);
|
2012-03-31 21:34:02 +00:00
|
|
|
virtual void DlgOK(HWND window);
|
2012-03-27 21:20:36 +00:00
|
|
|
virtual void DlgCANCEL(HWND window);
|
|
|
|
|
|
|
|
private:
|
2022-03-14 21:12:52 +00:00
|
|
|
BOOL get_tfename(int number, std::string & name, std::string & description);
|
2022-05-08 15:26:01 +00:00
|
|
|
void gray_ungray_items(HWND hwnd);
|
2020-11-29 17:22:50 +00:00
|
|
|
void init_tfe_dialog(HWND hwnd);
|
|
|
|
void save_tfe_dialog(HWND hwnd);
|
2012-03-27 21:20:36 +00:00
|
|
|
|
|
|
|
static CPageConfigTfe* ms_this;
|
|
|
|
static uilib_localize_dialog_param ms_dialog[];
|
|
|
|
static uilib_dialog_group ms_leftgroup[];
|
|
|
|
static uilib_dialog_group ms_rightgroup[];
|
|
|
|
};
|