📄 rightsystem.h
字号:
#if !defined(AFX_RIGHTSYSTEM_H__D09DE65C_3025_4D2E_91F5_89850D83272E__INCLUDED_)
#define AFX_RIGHTSYSTEM_H__D09DE65C_3025_4D2E_91F5_89850D83272E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RightSystem.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CRightSystem dialog
#include "../utils/filter_accel.h"
#include "../utils/Label.h"
#include "../utils/TransButton.h"
#include "../utils/TransGroup.h"
#include "../utils/Separator.h"
#include "../utils/transck.h"
#include "em_dlg.h"
#include "notif_opt.h"
//##ModelId=3F90BAAB02AB
class CRightSystem : public em_dlg<accel_dlg<CDialog> >
{
//##ModelId=3F90BAAB02C0
TSYS_TIME opt1; // 系统时间
//##ModelId=3F90BAAB02D4
TNET_ATTRIBUTE opt2 ; // 系统网络地址
//virtual void on_get_ok(DWORD ip, USHORT port, NET_OPTIONS no, void* stuff);
//virtual void on_set_ok(DWORD ip, USHORT port, NET_OPTIONS no );
//##ModelId=3F90BAAB02DE
MSG1(on_get_ok);
//##ModelId=3F90BAAB02E8
MSG1(on_set_ok);
//##ModelId=3F90BAAB02FC
MSG1(on_logged_out);
BOOL bDisconnect;
//##ModelId=3F90BAAB0305
virtual void on_join();
//##ModelId=3F90BAAB030F
virtual void on_leave();
//##ModelId=3F90BAAB0319
CString get_alias();
//##ModelId=3F90BAAB0323
bool confirm_set();
unsigned long old_ip ;
unsigned long old_mask ;
unsigned long old_gateway ;
// Construction
public:
//##ModelId=3F90BAAB032D
CRightSystem(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CRightSystem)
enum { IDD = IDD_RIGHT_SYSTEM };
CComboBox m_cbweek;
CSeparator m_s;
CTransButton m_btn_set_time;
CTransButton m_btn_get_localtime;
CTransButton m_btn_refresh_time;
CTransButton m_btn_set_net;
CTransButton m_btn_refresh_net;
CTransButton m_btn_default;
CIPAddressCtrl m_mask;
CIPAddressCtrl m_ip;
CIPAddressCtrl m_gateway;
CComboBox m_cbwhich;
CLabel m_10;
CLabel m_9;
CLabel m_8;
CLabel m_7;
CTransGroup m_6;
CTransGroup m_12;
// CLabel m_5;
CLabel m_4;
CLabel m_3;
CTransCK m_ck_wan;
CTransGroup m_2;
CLabel m_1;
CLabel m_title;
CTime m_date;
CTime m_time;
// int m_weekday;
int m_which;
BOOL m_wan ;
CString m_hostname ;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRightSystem)
public:
//##ModelId=3F90BAAC0126
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
//##ModelId=3F90BAAC013A
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
//##ModelId=3F90BAAC0158
LRESULT on_update_data(WPARAM, LPARAM);
// Generated message map functions
//{{AFX_MSG(CRightSystem)
//##ModelId=3F90BAAC0180
virtual BOOL OnInitDialog();
//##ModelId=3F90BAAC018A
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
//##ModelId=3F90BAAC01BC
afx_msg void OnSelchangeWhich();
afx_msg void OnGetLocalTime();
//##ModelId=3F90BAAC01C7
afx_msg void OnRefreshTime();
//##ModelId=3F90BAAC01D1
afx_msg void OnRefreshNet();
//##ModelId=3F90BAAC01DB
afx_msg void OnDefault();
//##ModelId=3F90BAAC01E4
afx_msg void OnSetTime();
//##ModelId=3F90BAAC01EE
afx_msg void OnSetNet();
//##ModelId=3F90BAB0028B
afx_msg void OnWan();
//##ModelId=3F90BAAC01F8
afx_msg void OnDatetimechangeDate(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RIGHTSYSTEM_H__D09DE65C_3025_4D2E_91F5_89850D83272E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -