Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CShellExtensionPage Class Reference

#include <proppage.h>

Inheritance diagram for CShellExtensionPage:

CPropertyPage CDeviceProfileManagement CProfileAssociationPage CProfileInformationPage CMonitorProfileManagement CPrinterProfileManagement CScannerProfileManagement List of all members.

Public Member Functions

 CShellExtensionPage ()
 ~CShellExtensionPage ()

Static Public Member Functions

BOOL OKToClose ()

Private Attributes

CShellExtensionPagem_pcsepPrevious
CShellExtensionPagem_pcsepNext

Static Private Attributes

CShellExtensionPagem_pcsepAnchor = NULL

Constructor & Destructor Documentation

CShellExtensionPage::CShellExtensionPage  ) 
 

Definition at line 113 of file proppage.cpp.

References m_pcsepAnchor, m_pcsepNext, m_pcsepPrevious, NULL, CGlobals::ReferenceCounter(), and UINT.

00113 { 00114 00115 if (m_pcsepAnchor) { 00116 00117 // If there is a cell other than anchor, update its list. 00118 if (m_pcsepAnchor -> m_pcsepNext) 00119 m_pcsepAnchor -> m_pcsepNext -> m_pcsepPrevious = this; 00120 // Insert this cell right after the anchor. 00121 m_pcsepPrevious = m_pcsepAnchor; 00122 m_pcsepNext = m_pcsepAnchor -> m_pcsepNext; 00123 m_pcsepAnchor -> m_pcsepNext = this; 00124 } 00125 else { 00126 00127 m_pcsepAnchor = this; 00128 m_pcsepNext = m_pcsepPrevious = NULL; 00129 } 00130 00131 m_psp.pcRefParent = (UINT *) &CGlobals::ReferenceCounter(); 00132 m_psp.dwFlags |= PSP_USEREFPARENT; 00133 }

CShellExtensionPage::~CShellExtensionPage  ) 
 

Definition at line 135 of file proppage.cpp.

References m_pcsepAnchor, m_pcsepNext, m_pcsepPrevious, and NULL.

00135 { 00136 00137 if (this == m_pcsepAnchor) { 00138 m_pcsepAnchor = m_pcsepNext; 00139 if (m_pcsepAnchor) { 00140 // Anchor never has previous. 00141 m_pcsepAnchor -> m_pcsepPrevious = NULL; 00142 } 00143 } 00144 else { 00145 m_pcsepPrevious -> m_pcsepNext = m_pcsepNext; 00146 // If there is other cell following this, update it. 00147 if (m_pcsepNext) 00148 m_pcsepNext -> m_pcsepPrevious = m_pcsepPrevious; 00149 } 00150 }


Member Function Documentation

BOOL CShellExtensionPage::OKToClose  )  [static]
 

Definition at line 156 of file proppage.cpp.

References BOOL, FALSE, IsWindow(), m_pcsepAnchor, and TRUE.

Referenced by CGlobals::CanUnload().

00156 { 00157 00158 while (m_pcsepAnchor) { 00159 if (IsWindow(m_pcsepAnchor -> m_hwnd)) 00160 return FALSE; // This page is still alive! 00161 00162 delete m_pcsepAnchor; // Page isn't alive, delete it... 00163 } 00164 00165 return TRUE; // No more pages allocated 00166 }


Member Data Documentation

CShellExtensionPage * CShellExtensionPage::m_pcsepAnchor = NULL [static, private]
 

Definition at line 106 of file proppage.cpp.

Referenced by CShellExtensionPage(), OKToClose(), and ~CShellExtensionPage().

CShellExtensionPage * CShellExtensionPage::m_pcsepNext [private]
 

Definition at line 134 of file proppage.h.

Referenced by CShellExtensionPage(), and ~CShellExtensionPage().

CShellExtensionPage* CShellExtensionPage::m_pcsepPrevious [private]
 

Definition at line 134 of file proppage.h.

Referenced by CShellExtensionPage(), and ~CShellExtensionPage().


The documentation for this class was generated from the following files:
Generated on Sat May 15 19:46:28 2004 for test by doxygen 1.3.7