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.

71 lines
1.3 KiB

  1. /*****************************************************************************************************************
  2. FILENAME: Graphix.h
  3. COPYRIGHT 2001 Microsoft Corporation and Executive Software International, Inc.
  4. */
  5. #ifndef _GRAPHIX_H_
  6. #define _GRAPHIX_H_
  7. #define LINE_HEIGHT 20
  8. #define PLAIN_BORDER 0
  9. #define SUNKEN_BORDER 1
  10. #define RAISED_BORDER 2
  11. #define SUNKEN_BOX 3
  12. #define RAISED_BOX 4
  13. BOOL ESIDrawEdge(
  14. HDC OutputDC,
  15. int startX,
  16. int startY,
  17. int endX,
  18. int endY);
  19. HRESULT
  20. DrawBorderEx(
  21. IN HDC hdcOutput,
  22. IN RECT rect,
  23. IN int iBorderType
  24. );
  25. HRESULT
  26. ProgressBar(
  27. IN HDC hdcOutput,
  28. IN RECT* prect,
  29. IN HFONT hFont,
  30. IN int iWidth,
  31. IN int iSpace,
  32. IN int iPercent
  33. );
  34. BOOL DrawBorder(HDC OutputDC, RECT * pRect, int BorderType);
  35. class CBmp
  36. {
  37. private:
  38. int iNumBitmaps;
  39. HINSTANCE hInst;
  40. HBITMAP * BitmapArray;
  41. void DeleteBitmaps();
  42. public:
  43. CBmp(HINSTANCE, LPTSTR);
  44. CBmp(HINSTANCE, INT_PTR *, int);
  45. ~CBmp();
  46. void LoadBitmaps(INT_PTR *, int);
  47. BOOL ChangeColor(int, int);
  48. BOOL ChangeColor(int, int, int);
  49. BOOL GetBmpSize(int *, int *);
  50. BOOL GetBmpSize(int, int *, int *);
  51. BOOL DrawBmpInHDC(HDC, int, int);
  52. BOOL DrawBmpInHDC(HDC, int, int, int);
  53. BOOL DrawBmpInHDCTruncate(HDC, RECT*);
  54. BOOL DrawBmpInHDCTruncate(HDC, int, RECT*);
  55. };
  56. #endif // #define _GRAPHIX_H_