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.

44 lines
1.1 KiB

  1. /*
  2. - B I T M A P . H
  3. *
  4. * Purpose:
  5. * Definitions for the Owner-Drawn Listbox bitmap stuff.
  6. *
  7. * Copyright 1993-1995 Microsoft Corporation. All Rights Reserved.
  8. */
  9. /* Listbox string formatting defines */
  10. #define chBOLD TEXT('\b')
  11. #define chUNDERLINE TEXT('\v')
  12. #define chTAB TEXT('\t')
  13. #define chBITMAP TEXT('\001')
  14. #define BMWIDTH 16
  15. #define BMHEIGHT 16
  16. #define NUMBMPS 4
  17. #define RGBREPLACE ((DWORD)0x00FF0000) // solid blue
  18. /* Font style of font to use in listbox */
  19. typedef struct
  20. {
  21. int lfHeight;
  22. int lfWeight;
  23. BYTE lfItalic;
  24. TCHAR lfFaceName[LF_FACESIZE];
  25. } FONTSTYLE;
  26. /* Function Prototypes */
  27. VOID DrawItem(LPDRAWITEMSTRUCT pDI);
  28. VOID MeasureItem(HANDLE hwnd, LPMEASUREITEMSTRUCT mis);
  29. VOID SetRGBValues(void);
  30. BOOL InitBmps(HWND hwnd, int idLB);
  31. VOID DeInitBmps(void);
  32. BOOL LoadBitmapLB(void);
  33. VOID DeleteBitmapLB(void);
  34. VOID ConvertDateRec(LPSTR lpszDateRec, LPSTR lpszDateDisplay);