home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / hpp.z / WDRAWITM.HPP < prev    next >
C/C++ Source or Header  |  1996-10-18  |  3KB  |  106 lines

  1. /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2.    %     Copyright (C) 1994, by WATCOM International Inc.  All rights    %
  3.    %     reserved.  No part of this software may be reproduced or       %
  4.    %     used in any form or by any means - graphic, electronic or       %
  5.    %     mechanical, including photocopying, recording, taping or       %
  6.    %     information storage and retrieval systems - except with the     %
  7.    %     written permission of WATCOM International Inc.                 %
  8.    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  9. */
  10.  
  11. #ifndef _WDRAWITM_HPP_INCLUDED
  12. #define _WDRAWITM_HPP_INCLUDED
  13.  
  14. #ifndef _WNO_PRAGMA_PUSH
  15. #pragma pack(push,8);
  16. #pragma enum int;
  17. #endif
  18.  
  19. #ifndef _WEVENTD_HPP_INCLUDED
  20. #   include "weventd.hpp"
  21. #endif
  22.  
  23. class WDisplayCanvas;
  24.  
  25. // These match the ODA_* types in windows.h
  26.  
  27. enum WDrawItemAction {
  28.     WDrawItemEntire             = 0x0001,
  29.     WDrawItemSelectedChanging   = 0x0002,
  30.     WDrawItemFocusChanging      = 0x0004,
  31. };
  32.  
  33. // These match the ODS_* types in windows.h
  34.  
  35. enum WDrawItemState {
  36.     WDrawItemSelected           = 0x0001,
  37.     WDrawItemGrayed             = 0x0002,
  38.     WDrawItemDisabled           = 0x0004,
  39.     WDrawItemChecked            = 0x0008,
  40.     WDrawItemWithFocus          = 0x0010,
  41.     WDrawItemAsDefault          = 0x0020,
  42.     WDrawItemAsComboboxEdit     = 0x1000,
  43. };
  44.  
  45. // These match the ODT_* types in windows.h and commctrl.h
  46.  
  47. enum WDrawItemType {
  48.     WDrawItemMenu               = 1,
  49.     WDrawItemListbox            = 2,
  50.     WDrawItemCombobox           = 3,
  51.     WDrawItemButton             = 4,
  52.     WDrawItemStatic             = 5,
  53.     WDrawItemHeader             = 100,
  54.     WDrawItemTabControl         = 101,
  55.     WDrawItemListView           = 102,
  56. };
  57.  
  58. struct WDrawItemEventData : public WEventData {
  59.     WDrawItemType       type;
  60.     WWindowHandle       control;
  61.     WULong              controlID;
  62.     WULong              itemID;
  63.     WULong              itemData;
  64.     WDrawItemAction     action;
  65.     WDrawItemState      state;
  66.     WRect               rcItem;
  67.     WDisplayCanvas *    canvas;
  68. };
  69.  
  70. struct WMeasureItemEventData : public WEventData {
  71.     WDrawItemType       type;
  72.     WWindowHandle       control;
  73.     WULong              controlID;
  74.     WULong              itemID;
  75.     WULong              itemData;
  76.     WULong              itemWidth;
  77.     WULong              itemHeight;
  78. };
  79.  
  80. struct WCompareItemEventData : public WEventData {
  81.     WDrawItemType       type;
  82.     WWindowHandle       control;
  83.     WULong              controlID;
  84.     WULong              itemID1;
  85.     WULong              itemData1;
  86.     WULong              itemID2;
  87.     WULong              itemData2;
  88. };
  89.  
  90. struct WDeleteItemEventData : public WEventData {
  91.     WDrawItemType       type;
  92.     WWindowHandle       control;
  93.     WULong              controlID;
  94.     WULong              itemID;
  95.     WULong              itemData;
  96.  
  97. };
  98.  
  99. #ifndef _WNO_PRAGMA_PUSH
  100. #pragma enum pop;
  101. #pragma pack(pop);
  102. #endif
  103.  
  104. #endif // _WDRAWITM_HPP_INCLUDED
  105.  
  106.