GME
13
|
00001 // InspectorEntry.h: interface for the CInspectorEntry class. 00002 // 00004 00005 #if !defined(AFX_INSPECTORENTRY_H__EC3A0721_9A2C_4BA0_9350_26E7ED5AFA7A__INCLUDED_) 00006 #define AFX_INSPECTORENTRY_H__EC3A0721_9A2C_4BA0_9350_26E7ED5AFA7A__INCLUDED_ 00007 00008 #pragma once 00009 00010 class CInspectorEntry; 00011 00012 typedef CTypedPtrList<CPtrList, CInspectorEntry *> CInspectorEntryList; 00013 00014 class CInspectorEntry 00015 { 00016 public: 00017 virtual void DrawEntry(CDC *pDC, const CRect &rect); 00018 virtual int GetEntryHeight(CDC *pDC); 00019 virtual CString GetHelp(); 00020 void InitFromParameter(const CString &name, const CString &val); 00021 void InitFromRegistry(const CString &name, const CComPtr<IMgaRegNode> ®node); 00022 void InitFromAttribute(const CString &name, const CComPtr<IMgaAttribute> &attr); 00023 CString GetName() {return m_name;}; 00024 CInspectorEntry(); 00025 virtual ~CInspectorEntry(); 00026 00027 protected: 00028 CString m_help; 00029 virtual bool IsInitialized() { return ( (!m_ROval.IsEmpty()) || (m_regnode != NULL) || (m_attribute != NULL) ); } 00030 CString m_ROval; 00031 CComPtr<IMgaRegNode> m_regnode; 00032 CComPtr<IMgaAttribute> m_attribute; 00033 CString m_name; 00034 }; 00035 00036 #endif // !defined(AFX_INSPECTORENTRY_H__EC3A0721_9A2C_4BA0_9350_26E7ED5AFA7A__INCLUDED_)