Source code of Windows XP (NT5)
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.

84 lines
2.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: ccertbmp.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _CCERTBMP_H
  11. #define _CCERTBMP_H
  12. #include "global.hxx"
  13. #include <dbgdef.h>
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CCertificateBmp window
  16. class CCertificateBmp
  17. {
  18. HWND m_hWnd;
  19. HINSTANCE m_hInst;
  20. BOOL m_fInitialized;
  21. BOOL m_fRevoked;
  22. HPALETTE m_hpal; // palette of the license background
  23. HBITMAP m_hbmpMiniCertOK; // the logo bitmap
  24. HBITMAP m_hbmpMiniCertNotOK; // the logo bitmap
  25. HBITMAP m_hbmbMiniCertExclamation;
  26. HBITMAP m_hbmbPKey;
  27. POINT m_ptCoordinates;
  28. PCCERT_CONTEXT m_pCertContext;
  29. BOOL m_fHasPrivateKey;
  30. HCURSOR m_hPrevCursor;
  31. DWORD m_dwChainError;
  32. BOOL m_fTrueError;
  33. BOOL m_fNoUsages;
  34. HBRUSH m_hWindowTextColorBrush;
  35. HBRUSH m_hWindowColorBrush;
  36. HBRUSH m_h3DLight;
  37. HBRUSH m_h3DHighLight;
  38. HBRUSH m_h3DLightShadow;
  39. HBRUSH m_h3DDarkShadow;
  40. public:
  41. CCertificateBmp();
  42. virtual ~CCertificateBmp();
  43. void SetWindow(HWND hWnd);
  44. HWND GetMyWindow();
  45. void SetRevoked(BOOL);
  46. BOOL GetRevoked();
  47. HINSTANCE Hinst();
  48. void SetHinst(HINSTANCE);
  49. void SetCertContext(PCCERT_CONTEXT, BOOL);
  50. PCCERT_CONTEXT GetCertContext();
  51. void DoSubclass();
  52. void DoUnSubclass();
  53. void SetChainError(DWORD dwError, BOOL fTrueError, BOOL fNoUsages);
  54. public:
  55. void OnPaint();
  56. int OnQueryNewPalette();
  57. WNDPROC m_prevProc;
  58. private:
  59. void Initialize();
  60. void InitializeBmp();
  61. void InitializeToolTip();
  62. // BOOL IsTrueErrorString(DWORD dwError);
  63. public:
  64. };
  65. /////////////////////////////////////////////////////////////////////////////
  66. #endif //_CCERTBMP_H