home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / mapi / route.cli / bitmap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-11  |  1.1 KB  |  45 lines

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