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.6 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. const GUID CDelegationBase::thisGuid = { 0x2974380b, 0x4c4b, 0x11d2, { 0x89, 0xd8, 0x0, 0x0, 0x21, 0x47, 0x31, 0x28 } };
  21. HBITMAP CDelegationBase::m_pBMapSm = NULL;
  22. HBITMAP CDelegationBase::m_pBMapLg = NULL;
  23. //==============================================================
  24. //
  25. // CDelegationBase implementation
  26. //
  27. //
  28. CDelegationBase::CDelegationBase()
  29. : bExpanded(FALSE), m_handle(NULL)
  30. {
  31. if (NULL == m_pBMapSm || NULL == m_pBMapLg)
  32. LoadBitmaps();
  33. }
  34. CDelegationBase::~CDelegationBase()
  35. {
  36. }
  37. // CDelegationBase::AddImages sets up the collection of images to be displayed
  38. // by the IComponent in the result pane as a result of its MMCN_SHOW handler
  39. HRESULT CDelegationBase::OnAddImages(IImageList *pImageList, HSCOPEITEM hsi)
  40. {
  41. return pImageList->ImageListSetStrip((long *)m_pBMapSm, // pointer to a handle
  42. (long *)m_pBMapLg, // pointer to a handle
  43. 0, // index of the first image in the strip
  44. RGB(0, 128, 128) // color of the icon mask
  45. );
  46. }