home *** CD-ROM | disk | FTP | other *** search
/ BUG 4 / BUGCD1997_05.BIN / aplic / clip4win / clip4win.exe / C4W30E.HUF / INCLUDE / DRAWITEM.CH < prev    next >
Text File  |  1993-10-14  |  2KB  |  57 lines

  1. ////////////////////////////
  2. //
  3. //    Clip-4-Win DRAWITEMSTRUCT definitions
  4. //
  5. //    Copyright (C) 1993 Skelton Software, Kendal Cottage, Hillam, Leeds, UK.
  6. //    All Rights Reserved.
  7. //
  8. ////////////////////////////
  9.  
  10. #ifndef    C4W_DIS_CH
  11. #define    C4W_DIS_CH
  12.  
  13.  
  14. // Array elements of aDIS[], which is used with owner-draw buttons etc.
  15. //
  16. // (these correspond to the members of the Windows DRAWITEMSTRUCT structure)
  17.  
  18. #define    DIS_CtlType    1    // one of ODT_BUTTON etc.
  19. #define    DIS_CtlID    2    // the id (not for a menu)
  20. #define    DIS_itemID    3    // menu-item id or listbox/combobox item #
  21.                 // (-ve if empty)
  22. #define    DIS_itemAction    4    // action needed; one or more of ODA_*
  23. #define    DIS_itemState    5    // state; one or more of ODS_*
  24. #define    DIS_hwndItem    6    // window handle (or menu handle)
  25. #define    DIS_hDC        7    // hDC for output
  26. #define    DIS_rcLeft    8    // \
  27. #define    DIS_rcTop    9    //  \___ x1,y1 and x2,y2 of rectangle to draw
  28. #define    DIS_rcRight    10    //  /
  29. #define    DIS_rcBottom    11    // /
  30. #define    DIS_itemData    12    // value last assigned to listbox/combobox
  31.  
  32. #define    DIS_LENGTH    12    // length of array
  33.  
  34. #define    DIS_STRUCT_DEF    "uint[7],int[4],dword" // for a2bin(), bin2a()
  35.  
  36. // Value & Bit settings for Owner Draw items
  37.  
  38. // types of control
  39. #define ODT_MENU    1
  40. #define ODT_LISTBOX    2
  41. #define ODT_COMBOBOX    3
  42. #define ODT_BUTTON    4
  43.  
  44. // actions
  45. #define ODA_DRAWENTIRE    1
  46. #define ODA_SELECT    2
  47. #define ODA_FOCUS    4
  48.  
  49. // states
  50. #define ODS_SELECTED    1
  51. #define ODS_GRAYED    2
  52. #define ODS_DISABLED    4
  53. #define ODS_CHECKED    8
  54. #define ODS_FOCUS    16
  55.  
  56. #endif    // C4W_DIS_CH
  57.