RegManageDlg.cpp
资源名称:Visualhk.rar [点击查看]
上传用户:cjw5120
上传日期:2022-05-11
资源大小:5032k
文件大小:2k
源码类别:
网络截获/分析
开发平台:
Visual C++
- // RegManageDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "MyClient.h"
- #include "RegManageDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /*
- 作者:海啸 lyyer English Name: Jack
- blog:http://lyyer.blog.sohu.com
- website:http://www.cnGSG.com
- 海啸网络安全组织
- */
- /////////////////////////////////////////////////////////////////////////////
- // CRegManageDlg dialog
- CRegManageDlg::CRegManageDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CRegManageDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CRegManageDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CRegManageDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CRegManageDlg)
- DDX_Control(pDX, IDC_TREE, m_tree);
- DDX_Control(pDX, IDC_LIST, m_list);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CRegManageDlg, CDialog)
- //{{AFX_MSG_MAP(CRegManageDlg)
- // NOTE: the ClassWizard will add message map macros here
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CRegManageDlg message handlers
- BOOL CRegManageDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // TODO: Add extra initialization here
- LONG lStyle = m_list.SendMessage(LVM_GETEXTENDEDLISTVIEWSTYLE);
- lStyle |= LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES | LVS_EX_HEADERDRAGDROP;
- m_list.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0,(LPARAM)lStyle);
- LV_COLUMN lvc;
- lvc.mask = LVCF_TEXT | LVCF_SUBITEM | LVCF_WIDTH /*| LVCF_FMT*/;
- m_list.DeleteAllItems();
- m_list.InsertColumn(0,"项名",LVCFMT_LEFT,130);
- m_list.InsertColumn(1,"类型",LVCFMT_LEFT,120);
- m_list.InsertColumn(2,"值",LVCFMT_LEFT,150);
- //m_list.InsertColumn(3,"是否文件夹",LVCFMT_LEFT,80);
- return true;
- }