mirror of https://github.com/tongzx/nt5src
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.
157 lines
4.4 KiB
157 lines
4.4 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:
|
|
// {2974380D-4C4B-11d2-89D8-000021473128}
|
|
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; }
|
|
|
|
public:
|
|
// virtual functions go here (for MMCN_*)
|
|
virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
|
|
|
|
private:
|
|
// {2974380D-4C4B-11d2-89D8-000021473128}
|
|
static const GUID thisGuid;
|
|
|
|
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:
|
|
// {2974380D-4C4B-11d2-89D8-000021473128}
|
|
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; }
|
|
|
|
public:
|
|
// virtual functions go here (for MMCN_*)
|
|
virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
|
|
|
|
private:
|
|
// {2974380D-4C4B-11d2-89D8-000021473128}
|
|
static const GUID thisGuid;
|
|
|
|
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:
|
|
// {2974380D-4C4B-11d2-89D8-000021473128}
|
|
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; }
|
|
|
|
public:
|
|
// virtual functions go here (for MMCN_*)
|
|
virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
|
|
|
|
private:
|
|
// {2974380D-4C4B-11d2-89D8-000021473128}
|
|
static const GUID thisGuid;
|
|
|
|
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);
|
|
|
|
private:
|
|
enum { IDM_NEW_PEOPLE = 1 };
|
|
|
|
// {2974380D-4C4B-11d2-89D8-000021473128}
|
|
static const GUID thisGuid;
|
|
|
|
enum { NUMBER_OF_CHILDREN = 3 };
|
|
CDelegationBase *children[3];
|
|
};
|
|
|
|
#endif // _PEOPLE_H
|