Leaked source code of windows server 2003
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.

53 lines
1.5 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to
  4. // existing Microsoft documentation.
  5. //
  6. //
  7. //
  8. //
  9. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  10. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  11. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  12. // PURPOSE.
  13. //
  14. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  15. //
  16. //
  17. //
  18. //==============================================================;
  19. #include "DeleBase.h"
  20. #include "Comp.h"
  21. #include "CompData.h"
  22. const GUID CDelegationBase::thisGuid = { 0x2974380b, 0x4c4b, 0x11d2, { 0x89, 0xd8, 0x0, 0x0, 0x21, 0x47, 0x31, 0x28 } };
  23. //==============================================================
  24. //
  25. // CDelegationBase implementation
  26. //
  27. //
  28. CDelegationBase::CDelegationBase()
  29. : m_pComponentData(NULL), bExpanded(FALSE)
  30. {
  31. m_pBMapSm = NULL;
  32. m_pBMapLg = NULL;
  33. LoadBitmaps();
  34. }
  35. CDelegationBase::~CDelegationBase()
  36. {
  37. }
  38. // CDelegationBase::AddImages sets up the collection of images to be displayed
  39. // by the IComponent in the result pane as a result of its MMCN_SHOW handler
  40. HRESULT CDelegationBase::AddImages(IImageList *pImageList, HSCOPEITEM hsi)
  41. {
  42. return pImageList->ImageListSetStrip((long *)m_pBMapSm, // pointer to a handle
  43. (long *)m_pBMapLg, // pointer to a handle
  44. 0, // index of the first image in the strip
  45. RGB(0, 128, 128) // color of the icon mask
  46. );
  47. }