2019-01-05 20:21:43 +08:00
|
|
|
|
// SettingDlg.cpp : ʵ<><CAB5><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
#include "2015Remote.h"
|
|
|
|
|
|
#include "SettingDlg.h"
|
|
|
|
|
|
#include "afxdialogex.h"
|
2025-03-30 18:03:01 +08:00
|
|
|
|
#include "client/CursorInfo.h"
|
2025-06-28 16:50:01 +08:00
|
|
|
|
#include "common/location.h"
|
2019-01-05 20:21:43 +08:00
|
|
|
|
|
|
|
|
|
|
// CSettingDlg <20>Ի<EFBFBD><D4BB><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_DYNAMIC(CSettingDlg, CDialog)
|
|
|
|
|
|
|
|
|
|
|
|
CSettingDlg::CSettingDlg(CWnd* pParent)
|
|
|
|
|
|
: CDialog(CSettingDlg::IDD, pParent)
|
2025-07-01 04:01:10 +08:00
|
|
|
|
, m_nListenPort("6543")
|
2019-01-05 20:21:43 +08:00
|
|
|
|
, m_nMax_Connect(0)
|
2025-03-13 23:34:33 +08:00
|
|
|
|
, m_sScreenCapture(_T("GDI"))
|
2025-03-30 18:03:01 +08:00
|
|
|
|
, m_sScreenCompress(_T("<EFBFBD><EFBFBD>Ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㷨"))
|
2025-04-07 18:18:36 +08:00
|
|
|
|
, m_nReportInterval(5)
|
|
|
|
|
|
, m_sSoftwareDetect(_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ"))
|
2025-06-14 02:53:11 +08:00
|
|
|
|
, m_sPublicIP(_T(""))
|
2025-07-20 04:42:29 +08:00
|
|
|
|
, m_sUdpOption(_T(""))
|
2025-07-31 19:45:46 +08:00
|
|
|
|
, m_nFrpPort(7000)
|
|
|
|
|
|
, m_sFrpToken(_T(""))
|
2019-01-05 20:21:43 +08:00
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CSettingDlg::~CSettingDlg()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CSettingDlg::DoDataExchange(CDataExchange* pDX)
|
|
|
|
|
|
{
|
|
|
|
|
|
CDialog::DoDataExchange(pDX);
|
|
|
|
|
|
DDX_Text(pDX, IDC_EDIT_PORT, m_nListenPort);
|
2025-07-01 04:01:10 +08:00
|
|
|
|
DDV_MaxChars(pDX, m_nListenPort, 32);
|
2019-01-05 20:21:43 +08:00
|
|
|
|
DDX_Text(pDX, IDC_EDIT_MAX, m_nMax_Connect);
|
|
|
|
|
|
DDX_Control(pDX, IDC_BUTTON_SETTINGAPPLY, m_ApplyButton);
|
2025-03-13 23:34:33 +08:00
|
|
|
|
DDX_Control(pDX, IDC_COMBO_SCREEN_CAPTURE, m_ComboScreenCapture);
|
|
|
|
|
|
DDX_CBString(pDX, IDC_COMBO_SCREEN_CAPTURE, m_sScreenCapture);
|
|
|
|
|
|
DDV_MaxChars(pDX, m_sScreenCapture, 32);
|
2025-03-30 18:03:01 +08:00
|
|
|
|
DDX_Control(pDX, IDC_COMBO_SCREEN_COMPRESS, m_ComboScreenCompress);
|
|
|
|
|
|
DDX_CBString(pDX, IDC_COMBO_SCREEN_COMPRESS, m_sScreenCompress);
|
2025-04-07 18:18:36 +08:00
|
|
|
|
DDX_Control(pDX, IDC_EDIT_REPORTINTERVAL, m_EditReportInterval);
|
|
|
|
|
|
DDX_Text(pDX, IDC_EDIT_REPORTINTERVAL, m_nReportInterval);
|
|
|
|
|
|
DDV_MinMaxInt(pDX, m_nReportInterval, 0, 3600);
|
|
|
|
|
|
DDX_Control(pDX, IDC_COMBO_SOFTWAREDETECT, m_ComboSoftwareDetect);
|
|
|
|
|
|
DDX_CBString(pDX, IDC_COMBO_SOFTWAREDETECT, m_sSoftwareDetect);
|
|
|
|
|
|
DDV_MaxChars(pDX, m_sSoftwareDetect, 256);
|
2025-06-14 02:53:11 +08:00
|
|
|
|
DDX_Control(pDX, IDC_EDIT_PUBLIC_IP, m_EditPublicIP);
|
|
|
|
|
|
DDX_Text(pDX, IDC_EDIT_PUBLIC_IP, m_sPublicIP);
|
|
|
|
|
|
DDV_MaxChars(pDX, m_sPublicIP, 100);
|
2025-07-20 04:42:29 +08:00
|
|
|
|
DDX_Control(pDX, IDC_EDIT_UDP_OPTION, m_EditUdpOption);
|
|
|
|
|
|
DDX_Text(pDX, IDC_EDIT_UDP_OPTION, m_sUdpOption);
|
|
|
|
|
|
DDV_MaxChars(pDX, m_sUdpOption, 24);
|
2025-07-31 19:45:46 +08:00
|
|
|
|
DDX_Control(pDX, IDC_EDIT_FRP_PORT, m_EditFrpPort);
|
|
|
|
|
|
DDX_Text(pDX, IDC_EDIT_FRP_PORT, m_nFrpPort);
|
|
|
|
|
|
DDV_MinMaxInt(pDX, m_nFrpPort, 1, 65535);
|
|
|
|
|
|
DDX_Control(pDX, IDC_EDIT_FRP_TOKEN, m_EditFrpToken);
|
|
|
|
|
|
DDX_Text(pDX, IDC_EDIT_FRP_TOKEN, m_sFrpToken);
|
|
|
|
|
|
DDV_MaxChars(pDX, m_sFrpToken, 24);
|
2025-09-07 20:31:34 +08:00
|
|
|
|
DDX_Control(pDX, IDC_COMBO_VIDEO_WALL, m_ComboVideoWall);
|
2019-01-05 20:21:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CSettingDlg, CDialog)
|
|
|
|
|
|
ON_BN_CLICKED(IDC_BUTTON_SETTINGAPPLY, &CSettingDlg::OnBnClickedButtonSettingapply)
|
|
|
|
|
|
ON_EN_CHANGE(IDC_EDIT_PORT, &CSettingDlg::OnEnChangeEditPort)
|
|
|
|
|
|
ON_EN_CHANGE(IDC_EDIT_MAX, &CSettingDlg::OnEnChangeEditMax)
|
2025-07-16 04:26:01 +08:00
|
|
|
|
ON_BN_CLICKED(IDC_RADIO_ALL_SCREEN, &CSettingDlg::OnBnClickedRadioAllScreen)
|
|
|
|
|
|
ON_BN_CLICKED(IDC_RADIO_MAIN_SCREEN, &CSettingDlg::OnBnClickedRadioMainScreen)
|
2025-07-31 19:45:46 +08:00
|
|
|
|
ON_BN_CLICKED(IDC_RADIO_FRP_OFF, &CSettingDlg::OnBnClickedRadioFrpOff)
|
|
|
|
|
|
ON_BN_CLICKED(IDC_RADIO_FRP_ON, &CSettingDlg::OnBnClickedRadioFrpOn)
|
2019-01-05 20:21:43 +08:00
|
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// CSettingDlg <20><>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BOOL CSettingDlg::OnInitDialog()
|
|
|
|
|
|
{
|
|
|
|
|
|
CDialog::OnInitDialog();
|
2025-06-28 16:50:01 +08:00
|
|
|
|
IPConverter cvt;
|
2025-06-18 04:22:48 +08:00
|
|
|
|
m_sPublicIP = THIS_CFG.GetStr("settings", "master", "").c_str();
|
2025-06-28 16:50:01 +08:00
|
|
|
|
m_sPublicIP = m_sPublicIP.IsEmpty() ? cvt.getPublicIP().c_str() : m_sPublicIP;
|
2025-07-01 04:01:10 +08:00
|
|
|
|
std::string nPort = THIS_CFG.GetStr("settings", "ghost", "6543");
|
2025-07-21 04:34:48 +08:00
|
|
|
|
m_sUdpOption = THIS_CFG.GetStr("settings", "UDPOption", "0").c_str();
|
2019-01-05 20:21:43 +08:00
|
|
|
|
|
2025-06-18 04:22:48 +08:00
|
|
|
|
int DXGI = THIS_CFG.GetInt("settings", "DXGI");
|
2025-03-13 23:34:33 +08:00
|
|
|
|
|
2025-06-18 04:22:48 +08:00
|
|
|
|
CString algo = THIS_CFG.GetStr("settings", "ScreenCompress", "").c_str();
|
2025-03-30 18:03:01 +08:00
|
|
|
|
|
2025-07-01 04:01:10 +08:00
|
|
|
|
m_nListenPort = nPort.c_str();
|
2019-01-05 20:21:43 +08:00
|
|
|
|
|
2025-03-30 18:03:01 +08:00
|
|
|
|
int n = algo.IsEmpty() ? ALGORITHM_DIFF : atoi(algo.GetString());
|
|
|
|
|
|
switch (n)
|
|
|
|
|
|
{
|
|
|
|
|
|
case ALGORITHM_GRAY:
|
|
|
|
|
|
m_sScreenCompress = "<EFBFBD>Ҷ<EFBFBD>ͼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
|
|
|
|
|
break;
|
|
|
|
|
|
case ALGORITHM_DIFF:
|
|
|
|
|
|
m_sScreenCompress = "<EFBFBD><EFBFBD>Ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㷨";
|
|
|
|
|
|
break;
|
|
|
|
|
|
case ALGORITHM_H264:
|
|
|
|
|
|
m_sScreenCompress = "H264ѹ<EFBFBD><EFBFBD><EFBFBD>㷨";
|
|
|
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
m_ComboScreenCompress.InsertString(ALGORITHM_GRAY, "<EFBFBD>Ҷ<EFBFBD>ͼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
|
m_ComboScreenCompress.InsertString(ALGORITHM_DIFF, "<EFBFBD><EFBFBD>Ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㷨");
|
|
|
|
|
|
m_ComboScreenCompress.InsertString(ALGORITHM_H264, "H264ѹ<EFBFBD><EFBFBD><EFBFBD>㷨");
|
|
|
|
|
|
|
2025-03-13 23:34:33 +08:00
|
|
|
|
m_ComboScreenCapture.InsertString(0, "GDI");
|
|
|
|
|
|
m_ComboScreenCapture.InsertString(1, "DXGI");
|
2025-04-07 18:18:36 +08:00
|
|
|
|
m_ComboScreenCapture.InsertString(2, "VIRTUAL");
|
|
|
|
|
|
m_sScreenCapture = DXGI==1 ? "DXGI" : (DXGI == 2 ? "VIRTUAL" : "GDI");
|
|
|
|
|
|
|
|
|
|
|
|
m_ComboSoftwareDetect.InsertString(SOFTWARE_CAMERA, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ");
|
|
|
|
|
|
m_ComboSoftwareDetect.InsertString(SOFTWARE_TELEGRAM, "<EFBFBD>籨");
|
2025-06-18 04:22:48 +08:00
|
|
|
|
auto str = THIS_CFG.GetStr("settings", "ReportInterval", "5");
|
|
|
|
|
|
m_nReportInterval = atoi(str.c_str());
|
|
|
|
|
|
n = THIS_CFG.GetInt("settings", "SoftwareDetect");
|
2025-04-07 18:18:36 +08:00
|
|
|
|
switch (n)
|
|
|
|
|
|
{
|
|
|
|
|
|
case SOFTWARE_CAMERA:
|
|
|
|
|
|
m_sSoftwareDetect = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ";
|
|
|
|
|
|
break;
|
|
|
|
|
|
case SOFTWARE_TELEGRAM:
|
|
|
|
|
|
m_sSoftwareDetect = "<EFBFBD>籨";
|
|
|
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
|
|
|
m_sSoftwareDetect = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ";
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
2025-07-16 04:26:01 +08:00
|
|
|
|
BOOL all = THIS_CFG.GetInt("settings", "MultiScreen");
|
|
|
|
|
|
((CButton*)GetDlgItem(IDC_RADIO_ALL_SCREEN))->SetCheck(!all);
|
|
|
|
|
|
((CButton*)GetDlgItem(IDC_RADIO_MAIN_SCREEN))->SetCheck(all);
|
2025-07-31 19:45:46 +08:00
|
|
|
|
|
|
|
|
|
|
BOOL frp = THIS_CFG.GetInt("frp", "UseFrp");
|
|
|
|
|
|
((CButton*)GetDlgItem(IDC_RADIO_FRP_OFF))->SetCheck(!frp);
|
|
|
|
|
|
((CButton*)GetDlgItem(IDC_RADIO_FRP_ON))->SetCheck(frp);
|
|
|
|
|
|
m_nFrpPort = THIS_CFG.GetInt("frp", "server_port", 7000);
|
|
|
|
|
|
m_sFrpToken = THIS_CFG.GetStr("frp", "token").c_str();
|
|
|
|
|
|
|
2025-09-07 20:31:34 +08:00
|
|
|
|
int size = THIS_CFG.GetInt("settings", "VideoWallSize");
|
|
|
|
|
|
m_ComboVideoWall.InsertString(0, "<EFBFBD><EFBFBD>");
|
|
|
|
|
|
m_ComboVideoWall.InsertString(1, "2 x 2");
|
|
|
|
|
|
m_ComboVideoWall.InsertString(2, "3 x 3");
|
|
|
|
|
|
m_ComboVideoWall.InsertString(3, "4 x 4");
|
|
|
|
|
|
m_ComboVideoWall.InsertString(4, "5 x 5");
|
|
|
|
|
|
if (size < 1 || size > 5) size = 1;
|
|
|
|
|
|
m_ComboVideoWall.SetCurSel(size-1);
|
|
|
|
|
|
|
2019-01-05 20:21:43 +08:00
|
|
|
|
UpdateData(FALSE);
|
|
|
|
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CSettingDlg::OnBnClickedButtonSettingapply()
|
|
|
|
|
|
{
|
|
|
|
|
|
UpdateData(TRUE);
|
2025-06-18 04:22:48 +08:00
|
|
|
|
THIS_CFG.SetStr("settings", "master", m_sPublicIP.GetBuffer());
|
2025-07-01 04:01:10 +08:00
|
|
|
|
THIS_CFG.SetStr("settings", "ghost", m_nListenPort.GetString());
|
2025-07-20 04:42:29 +08:00
|
|
|
|
THIS_CFG.SetStr("settings", "UDPOption", m_sUdpOption.GetString());
|
2019-01-05 20:21:43 +08:00
|
|
|
|
|
2025-03-13 23:34:33 +08:00
|
|
|
|
int n = m_ComboScreenCapture.GetCurSel();
|
2025-06-18 04:22:48 +08:00
|
|
|
|
THIS_CFG.SetInt("settings", "DXGI", n);
|
2025-03-13 23:34:33 +08:00
|
|
|
|
|
2025-03-30 18:03:01 +08:00
|
|
|
|
n = m_ComboScreenCompress.GetCurSel();
|
2025-06-18 04:22:48 +08:00
|
|
|
|
THIS_CFG.SetInt("settings", "ScreenCompress", n);
|
2025-03-30 18:03:01 +08:00
|
|
|
|
|
2025-06-18 04:22:48 +08:00
|
|
|
|
THIS_CFG.SetInt("settings", "ReportInterval", m_nReportInterval);
|
2025-04-07 18:18:36 +08:00
|
|
|
|
n = m_ComboSoftwareDetect.GetCurSel();
|
2025-06-18 04:22:48 +08:00
|
|
|
|
THIS_CFG.SetInt("settings", "SoftwareDetect", n);
|
2025-04-07 18:18:36 +08:00
|
|
|
|
|
2025-07-16 04:26:01 +08:00
|
|
|
|
BOOL all = ((CButton*)GetDlgItem(IDC_RADIO_MAIN_SCREEN))->GetCheck();
|
|
|
|
|
|
THIS_CFG.SetInt("settings", "MultiScreen", all);
|
|
|
|
|
|
|
2025-07-31 19:45:46 +08:00
|
|
|
|
BOOL frp = ((CButton*)GetDlgItem(IDC_RADIO_FRP_ON))->GetCheck();
|
|
|
|
|
|
THIS_CFG.SetInt("frp", "UseFrp", frp);
|
|
|
|
|
|
THIS_CFG.SetInt("frp", "server_port", m_nFrpPort);
|
|
|
|
|
|
THIS_CFG.SetStr("frp", "token", m_sFrpToken.GetString());
|
|
|
|
|
|
|
2025-09-07 20:31:34 +08:00
|
|
|
|
THIS_CFG.SetInt("settings", "VideoWallSize", m_ComboVideoWall.GetCurSel()+1);
|
|
|
|
|
|
|
2019-01-05 20:21:43 +08:00
|
|
|
|
m_ApplyButton.EnableWindow(FALSE);
|
|
|
|
|
|
m_ApplyButton.ShowWindow(SW_HIDE);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CSettingDlg::OnEnChangeEditPort()
|
|
|
|
|
|
{
|
|
|
|
|
|
// TODO: <20><><EFBFBD><EFBFBD><EFBFBD>ÿؼ<C3BF><D8BC><EFBFBD> RICHEDIT <20>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// <20><><EFBFBD>ʹ<EFBFBD>֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д CDialog::OnInitDialog()
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> CRichEditCtrl().SetEventMask()<29><>
|
|
|
|
|
|
// ͬʱ<CDAC><CAB1> ENM_CHANGE <20><>־<EFBFBD><D6BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㵽<EFBFBD><E3B5BD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: <20>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD>ӿؼ<D3BF>֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
// <20><>Button<6F><6E><EFBFBD>ӱ<EFBFBD><D3B1><EFBFBD>
|
|
|
|
|
|
m_ApplyButton.ShowWindow(SW_NORMAL);
|
|
|
|
|
|
m_ApplyButton.EnableWindow(TRUE);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CSettingDlg::OnEnChangeEditMax()
|
|
|
|
|
|
{
|
|
|
|
|
|
// TODO: <20><><EFBFBD><EFBFBD><EFBFBD>ÿؼ<C3BF><D8BC><EFBFBD> RICHEDIT <20>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// <20><><EFBFBD>ʹ<EFBFBD>֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д CDialog::OnInitDialog()
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> CRichEditCtrl().SetEventMask()<29><>
|
|
|
|
|
|
// ͬʱ<CDAC><CAB1> ENM_CHANGE <20><>־<EFBFBD><D6BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㵽<EFBFBD><E3B5BD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: <20>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD>ӿؼ<D3BF>֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
HWND hApplyButton = ::GetDlgItem(m_hWnd,IDC_BUTTON_SETTINGAPPLY);
|
|
|
|
|
|
|
|
|
|
|
|
::ShowWindow(hApplyButton,SW_NORMAL);
|
|
|
|
|
|
::EnableWindow(hApplyButton,TRUE);
|
|
|
|
|
|
}
|
2019-08-25 10:06:31 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CSettingDlg::OnOK()
|
|
|
|
|
|
{
|
|
|
|
|
|
OnBnClickedButtonSettingapply();
|
|
|
|
|
|
|
|
|
|
|
|
CDialog::OnOK();
|
|
|
|
|
|
}
|
2025-07-16 04:26:01 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CSettingDlg::OnBnClickedRadioAllScreen()
|
|
|
|
|
|
{
|
|
|
|
|
|
BOOL b = ((CButton*)GetDlgItem(IDC_RADIO_ALL_SCREEN))->GetCheck();
|
|
|
|
|
|
((CButton*)GetDlgItem(IDC_RADIO_MAIN_SCREEN))->SetCheck(!b);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CSettingDlg::OnBnClickedRadioMainScreen()
|
|
|
|
|
|
{
|
|
|
|
|
|
BOOL b = ((CButton*)GetDlgItem(IDC_RADIO_MAIN_SCREEN))->GetCheck();
|
|
|
|
|
|
((CButton*)GetDlgItem(IDC_RADIO_ALL_SCREEN))->SetCheck(!b);
|
|
|
|
|
|
}
|
2025-07-31 19:45:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CSettingDlg::OnBnClickedRadioFrpOff()
|
|
|
|
|
|
{
|
|
|
|
|
|
BOOL b = ((CButton*)GetDlgItem(IDC_RADIO_FRP_OFF))->GetCheck();
|
|
|
|
|
|
((CButton*)GetDlgItem(IDC_RADIO_FRP_ON))->SetCheck(!b);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CSettingDlg::OnBnClickedRadioFrpOn()
|
|
|
|
|
|
{
|
|
|
|
|
|
BOOL b = ((CButton*)GetDlgItem(IDC_RADIO_FRP_ON))->GetCheck();
|
|
|
|
|
|
((CButton*)GetDlgItem(IDC_RADIO_FRP_OFF))->SetCheck(!b);
|
|
|
|
|
|
}
|