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.

66 lines
1.6 KiB

  1. //____________________________________________________________________________
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1995 - 1996.
  5. //
  6. // File: JobIcons.hxx
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 4/5/1996 RaviR Created
  15. //
  16. //____________________________________________________________________________
  17. class CJobIcon
  18. {
  19. public:
  20. CJobIcon(void);
  21. ~CJobIcon(void) {
  22. if (m_himlSmall) ImageList_Destroy(m_himlSmall);
  23. if (m_himlLarge) ImageList_Destroy(m_himlLarge);
  24. if (m_himlXLarge) ImageList_Destroy(m_himlXLarge);
  25. }
  26. HICON OverlayStateIcon(HICON hicon, BOOL fEnabled, UINT nIconSize);
  27. void GetIcons(LPCTSTR pszApp, BOOL fEnabled, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize);
  28. void GetTemplateIcons(HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize);
  29. private:
  30. bool LoadImageList(HIMAGELIST* phiml, UINT nBmpToLoad, int cx, int cy);
  31. void
  32. _OverlayIcons(
  33. HICON * phicon,
  34. BOOL fEnabled,
  35. UINT nIconSize);
  36. HIMAGELIST m_himlSmall;
  37. HIMAGELIST m_himlLarge;
  38. HIMAGELIST m_himlXLarge;
  39. };
  40. HICON
  41. GetDefaultAppIcon(
  42. UINT nIconSize); // size of icon requested
  43. UINT TS_ExtractIconEx(
  44. LPCTSTR lpszFile, // file name
  45. int nIconIndex, // icon index
  46. HICON* phicon, // icon array
  47. UINT nIcons, // number of icons to extract
  48. UINT nIconSize // width or height (they're the same)
  49. );
  50. void ResolveLnk(
  51. LPCTSTR lpszLnkPath, // path to link
  52. LPTSTR lpszExePath // path to exe
  53. );