windows-nt/Source/XPSP1/NT/admin/activec/samples/sdksamples/activex/statnode.h

50 lines
1.4 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//==============================================================;
//
// 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 _STATICNODE_H
#define _STATICNODE_H
#include "DeleBase.h"
class CStaticNode : public CDelegationBase {
public:
CStaticNode(CComponentData *pComponentData = NULL);
virtual ~CStaticNode();
virtual const _TCHAR *GetDisplayName(int nCol = 0) {
static _TCHAR szDisplayName[256];
LoadString(g_hinst, IDS_SNAPINNAME, szDisplayName, sizeof(szDisplayName));
return szDisplayName;
}
virtual const GUID & getNodeType() { return thisGuid; }
virtual const int GetBitmapIndex() { return INDEX_NONE; }
virtual HRESULT Expand(IConsoleNameSpace *pConsoleNameSpace, IConsole *pConsole, HSCOPEITEM parent);
private:
enum { NUMBER_OF_CHILDREN = 4 };
CDelegationBase *children[NUMBER_OF_CHILDREN];
// {2974380C-4C4B-11d2-89D8-000021473128}
static const GUID thisGuid;
};
#endif // _STATICNODE_H