Init: Migrate SimpleRemoter (Since v1.3.1) to Gitea

This commit is contained in:
yuanyuanxiang
2026-04-19 19:55:01 +02:00
commit 5a325a202b
744 changed files with 235562 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
// IPHistoryDlg.h - IP 历史记录对话框
#pragma once
#include "resource.h"
#include "LangManager.h"
#include <vector>
#include <string>
struct IPRecord {
std::string ip;
std::string machineName;
std::string timestamp;
std::string formattedDate;
int daysAgo;
};
class CIPHistoryDlg : public CDialogLangEx
{
public:
CIPHistoryDlg(CWnd* pParent = nullptr);
virtual ~CIPHistoryDlg();
enum { IDD = IDD_DIALOG_IP_HISTORY };
// 设置数据
void SetTitle(const CString& title) { m_strTitle = title; }
void SetRecords(const std::vector<IPRecord>& records) { m_Records = records; }
void SetRemovedCount(int count) { m_nRemovedCount = count; }
protected:
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
private:
CListBox m_ListBox;
CString m_strTitle;
std::vector<IPRecord> m_Records;
int m_nRemovedCount;
void PopulateList();
};