This article details a tool aimed to import/export registry sections in XML format, to make registry diff easier in practice.
|
#pragma once
class registryxmlView : public CListView
{
// Member
protected:
CImageList m_imglSmall;
protected: // create from serialization only
registryxmlView();
DECLARE_DYNCREATE(registryxmlView)
// Attributes
public:
registryxmlDoc* GetDocument();
// Operations
public:
BOOL InsertItem(int nIndex, int nImage, CStringArray &szArray);
long GetNbItems();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(registryxmlView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~registryxmlView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(registryxmlView)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
afx_msg void OnLButtonDblClk( UINT, CPoint );
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in FormsSpyView.cpp
inline registryxmlDoc* registryxmlView::GetDocument()
{ return (registryxmlDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Addicted to reverse engineering. At work, I am developing business intelligence software in a team of smart people (independent software vendor).
Need a fast Excel generation component? Try
xlsgen.