mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +00:00
d631b23d24
* Make Uthernet settings behave like all other cards. Fix as well the fact that the Uthernet interface would not be reapplied after a restart. * Uthernet: use consistent types to reduce code complexity. Use std::string everywhere.
40 lines
999 B
C++
40 lines
999 B
C++
#pragma once
|
|
|
|
#include "IPropertySheetPage.h"
|
|
#include "../Tfe/Uilib.h"
|
|
|
|
#include <string>
|
|
|
|
class CPageConfigTfe : private IPropertySheetPage
|
|
{
|
|
public:
|
|
CPageConfigTfe()
|
|
{
|
|
CPageConfigTfe::ms_this = this;
|
|
m_tfe_enabled = 0;
|
|
}
|
|
virtual ~CPageConfigTfe(){}
|
|
|
|
static INT_PTR CALLBACK DlgProc(HWND window, UINT message, WPARAM wparam, LPARAM lparam);
|
|
|
|
int m_tfe_enabled;
|
|
std::string m_tfe_interface_name;
|
|
|
|
protected:
|
|
// IPropertySheetPage
|
|
virtual INT_PTR DlgProcInternal(HWND window, UINT message, WPARAM wparam, LPARAM lparam);
|
|
virtual void DlgOK(HWND window);
|
|
virtual void DlgCANCEL(HWND window);
|
|
|
|
private:
|
|
BOOL get_tfename(int number, char **ppname, char **ppdescription);
|
|
int gray_ungray_items(HWND hwnd);
|
|
void init_tfe_dialog(HWND hwnd);
|
|
void save_tfe_dialog(HWND hwnd);
|
|
|
|
static CPageConfigTfe* ms_this;
|
|
static uilib_localize_dialog_param ms_dialog[];
|
|
static uilib_dialog_group ms_leftgroup[];
|
|
static uilib_dialog_group ms_rightgroup[];
|
|
};
|