You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
2.7 KiB
94 lines
2.7 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation 1996-2001.
|
|
//
|
|
// File: AMember.h
|
|
//
|
|
// Contents: Definition of CAttrMember
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
#if !defined(AFX_AMEMBER_H__817356C3_4A31_11D1_AB55_00C04FB6C6FA__INCLUDED_)
|
|
#define AFX_AMEMBER_H__817356C3_4A31_11D1_AB55_00C04FB6C6FA__INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
#include "SelfDeletingPropertyPage.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CAttrMember dialog
|
|
|
|
class CAttrMember : public CSelfDeletingPropertyPage
|
|
{
|
|
DECLARE_DYNCREATE(CAttrMember)
|
|
|
|
// Construction
|
|
public:
|
|
void SetSnapin(CSnapin *pSnapin);
|
|
void SetMemberType(DWORD nType);
|
|
void Initialize(CResult *pData);
|
|
void SetDefineInDatabase(BOOL fDefineInDatabase);
|
|
void SetSibling(CAttrMember *pAttrMember);
|
|
CAttrMember();
|
|
virtual ~CAttrMember();
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CAttrMember)
|
|
enum { IDD = IDD_ATTR_GROUP };
|
|
BOOL m_fDefineInDatabase;
|
|
CString m_strHeader;
|
|
CEdit m_eNoMembers;
|
|
//}}AFX_DATA
|
|
|
|
// Overrides
|
|
// ClassWizard generate virtual function overrides
|
|
//{{AFX_VIRTUAL(CAttrMember)
|
|
public:
|
|
virtual void OnCancel();
|
|
virtual BOOL OnApply();
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CAttrMember)
|
|
afx_msg void OnAdd();
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnClickMembers(NMHDR *pNM, LRESULT *pResult);
|
|
afx_msg void OnDefineInDatabase();
|
|
//}}AFX_MSG
|
|
afx_msg BOOL OnHelp(WPARAM wParam, LPARAM lParam);
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
void DoContextHelp (HWND hWndControl);
|
|
PSCE_GROUP_MEMBERSHIP GetGroupInTemplate();
|
|
|
|
private:
|
|
BOOL SwapNoMembersDisplay(BOOL bNoMembers);
|
|
void DeleteGroup(const CString &szGroupName);
|
|
CString m_strPageTitle;
|
|
bool m_bDirty;
|
|
BOOL m_fOriginalDefineInDatabase;
|
|
BOOL m_bAlias;
|
|
BOOL m_bNoMembers;
|
|
CSnapin * m_pSnapin;
|
|
PSCE_NAME_STATUS_LIST m_pMergeList;
|
|
DWORD m_dwType;
|
|
CResult * m_pData;
|
|
CAttrMember *m_pAttrMember;
|
|
BOOL m_fProcessing;
|
|
BOOL m_fInitialized;
|
|
CCriticalSection m_CS;
|
|
};
|
|
|
|
|
|
#define GROUP_MEMBER_OF 1
|
|
#define GROUP_MEMBERS 2
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_AMEMBER_H__817356C3_4A31_11D1_AB55_00C04FB6C6FA__INCLUDED_)
|