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.
174 lines
5.3 KiB
174 lines
5.3 KiB
//==============================================================;
|
|
//
|
|
// This source code is only intended as a supplement to
|
|
// existing Microsoft documentation.
|
|
//
|
|
//
|
|
//
|
|
//
|
|
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
|
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
|
|
// PURPOSE.
|
|
//
|
|
// Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
|
|
//
|
|
//
|
|
//
|
|
//==============================================================;
|
|
|
|
#ifndef _PEOPLE_H
|
|
#define _PEOPLE_H
|
|
|
|
#include "DeleBase.h"
|
|
|
|
class CBicycle : public CDelegationBase {
|
|
public:
|
|
CBicycle(int i) : id(i) { }
|
|
virtual ~CBicycle() {}
|
|
|
|
virtual const _TCHAR *GetDisplayName(int nCol = 0);
|
|
virtual const GUID & getNodeType() { return thisGuid; }
|
|
virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
|
|
|
|
private:
|
|
// {9E3FF366-6BE7-11d3-9156-00C04F65B3F9}
|
|
static const GUID thisGuid;
|
|
|
|
int id;
|
|
};
|
|
|
|
class CBicycleFolder : public CDelegationBase {
|
|
public:
|
|
CBicycleFolder();
|
|
virtual ~CBicycleFolder();
|
|
|
|
virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Bicycles"); }
|
|
virtual const GUID & getNodeType() { return thisGuid; }
|
|
virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
|
|
virtual void SetScopeItemValue(HSCOPEITEM hscopeitem) { m_hParentHScopeItem = hscopeitem; }
|
|
virtual HSCOPEITEM GetParentScopeItem() { return m_hParentHScopeItem; }
|
|
|
|
public:
|
|
// virtual functions go here (for MMCN_*)
|
|
virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
|
|
|
|
private:
|
|
// {9671350A-6BE7-11d3-9156-00C04F65B3F9}
|
|
static const GUID thisGuid;
|
|
|
|
HSCOPEITEM m_hParentHScopeItem;
|
|
|
|
enum { NUMBER_OF_CHILDREN = 20 };
|
|
CDelegationBase *children[NUMBER_OF_CHILDREN];
|
|
};
|
|
|
|
class CSkateboard : public CDelegationBase {
|
|
public:
|
|
CSkateboard(int i) : id(i) { }
|
|
virtual ~CSkateboard() {}
|
|
|
|
virtual const _TCHAR *GetDisplayName(int nCol = 0);
|
|
virtual const GUID & getNodeType() { return thisGuid; }
|
|
virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
|
|
|
|
private:
|
|
// {A6707E01-6BE7-11d3-9156-00C04F65B3F9}
|
|
static const GUID thisGuid;
|
|
|
|
int id;
|
|
};
|
|
|
|
class CSkateboardFolder : public CDelegationBase {
|
|
public:
|
|
CSkateboardFolder();
|
|
virtual ~CSkateboardFolder();
|
|
|
|
virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Skateboards"); }
|
|
virtual const GUID & getNodeType() { return thisGuid; }
|
|
virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
|
|
virtual void SetScopeItemValue(HSCOPEITEM hscopeitem) { m_hParentHScopeItem = hscopeitem; }
|
|
virtual HSCOPEITEM GetParentScopeItem() { return m_hParentHScopeItem; }
|
|
|
|
public:
|
|
// virtual functions go here (for MMCN_*)
|
|
virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
|
|
|
|
private:
|
|
// {9671350B-6BE7-11d3-9156-00C04F65B3F9}
|
|
static const GUID thisGuid;
|
|
|
|
HSCOPEITEM m_hParentHScopeItem;
|
|
|
|
enum { NUMBER_OF_CHILDREN = 20 };
|
|
CDelegationBase *children[NUMBER_OF_CHILDREN];
|
|
};
|
|
|
|
class CIceSkate : public CDelegationBase {
|
|
public:
|
|
CIceSkate(int i) : id(i) { }
|
|
virtual ~CIceSkate() {}
|
|
|
|
virtual const _TCHAR *GetDisplayName(int nCol = 0);
|
|
virtual const GUID & getNodeType() { return thisGuid; }
|
|
virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
|
|
|
|
private:
|
|
// {A6707E02-6BE7-11d3-9156-00C04F65B3F9}
|
|
static const GUID thisGuid;
|
|
|
|
int id;
|
|
};
|
|
|
|
class CIceSkateFolder : public CDelegationBase {
|
|
public:
|
|
CIceSkateFolder();
|
|
virtual ~CIceSkateFolder();
|
|
|
|
virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Ice Skates"); }
|
|
virtual const GUID & getNodeType() { return thisGuid; }
|
|
virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
|
|
virtual void SetScopeItemValue(HSCOPEITEM hscopeitem) { m_hParentHScopeItem = hscopeitem; }
|
|
virtual HSCOPEITEM GetParentScopeItem() { return m_hParentHScopeItem; }
|
|
|
|
public:
|
|
// virtual functions go here (for MMCN_*)
|
|
virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
|
|
|
|
private:
|
|
// {9E3FF365-6BE7-11d3-9156-00C04F65B3F9}
|
|
static const GUID thisGuid;
|
|
|
|
HSCOPEITEM m_hParentHScopeItem;
|
|
|
|
enum { NUMBER_OF_CHILDREN = 20 };
|
|
CDelegationBase *children[NUMBER_OF_CHILDREN];
|
|
};
|
|
|
|
class CPeoplePoweredVehicle : public CDelegationBase {
|
|
public:
|
|
CPeoplePoweredVehicle();
|
|
virtual ~CPeoplePoweredVehicle();
|
|
|
|
virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("People-powered Vehicles"); }
|
|
virtual const GUID & getNodeType() { return thisGuid; }
|
|
virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
|
|
|
|
virtual HRESULT OnExpand(IConsoleNameSpace *pConsoleNameSpace, IConsole *pConsole, HSCOPEITEM parent);
|
|
|
|
virtual void SetScopeItemValue(HSCOPEITEM hscopeitem) { m_hParentHScopeItem = hscopeitem; }
|
|
virtual HSCOPEITEM GetParentScopeItem() { return m_hParentHScopeItem; }
|
|
|
|
private:
|
|
enum { IDM_NEW_PEOPLE = 1 };
|
|
|
|
// {96713509-6BE7-11d3-9156-00C04F65B3F9}
|
|
static const GUID thisGuid;
|
|
|
|
HSCOPEITEM m_hParentHScopeItem;
|
|
|
|
enum { NUMBER_OF_CHILDREN = 3 };
|
|
CDelegationBase *children[3];
|
|
};
|
|
|
|
#endif // _PEOPLE_H
|