home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / hpp.z / WSTATIC.HPP < prev    next >
C/C++ Source or Header  |  1996-10-18  |  4KB  |  105 lines

  1. /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2.    %     Copyright (C) 1995 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. /*************************************************************************
  12.  *
  13.  * WStatic -- Wrapper for the Windows 95 Static control.
  14.  *
  15.  *   Events:
  16.  *
  17.  *************************************************************************/
  18.  
  19. #ifndef _WSTATIC_HPP_INCLUDED
  20. #define _WSTATIC_HPP_INCLUDED
  21.  
  22. #ifndef _WNO_PRAGMA_PUSH
  23. #pragma pack(push,8);
  24. #pragma enum int;
  25. #endif
  26.  
  27. #ifndef _WCONTROL_HPP_INCLUDED
  28. #  include "wcontrol.hpp"
  29. #endif
  30.  
  31. //
  32. // Static styles
  33. //
  34.  
  35. #define WSSDefault              ((WStyle)0x5000010CL) // WS_VISIBLE|SS_LEFTNOWORDWRAP|WS_CHILD|SS_NOTIFY
  36. #define WSSLeft                 ((WStyle)0x00000000L) // SS_LEFT
  37. #define WSSCenter               ((WStyle)0x00000001L) // SS_CENTER
  38. #define WSSRight                ((WStyle)0x00000002L) // SS_RIGHT
  39. #define WSSIcon                 ((WStyle)0x00000003L) // SS_ICON
  40. #define WSSBlackRect            ((WStyle)0x00000004L) // SS_BLACKRECT
  41. #define WSSGrayRect             ((WStyle)0x00000005L) // SS_GRAYRECT
  42. #define WSSWhiteRect            ((WStyle)0x00000006L) // SS_WHITERECT
  43. #define WSSBlackFrame           ((WStyle)0x00000007L) // SS_BLACKFRAME
  44. #define WSSGrayFrame            ((WStyle)0x00000008L) // SS_GRAYFRAME
  45. #define WSSWhiteFrame           ((WStyle)0x00000009L) // SS_WHITEFRAME
  46. #define WSSUserItem             ((WStyle)0x0000000AL) // SS_USERITEM
  47. #define WSSSimple               ((WStyle)0x0000000BL) // SS_SIMPLE
  48. #define WSSLeftNoWordWrap       ((WStyle)0x0000000CL) // SS_LEFTNOWORDWRAP
  49. #define WSSOwnerDraw            ((WStyle)0x0000000DL) // SS_OWNERDRAW
  50. #define WSSBitmap               ((WStyle)0x0000000EL) // SS_BITMAP
  51. #define WSSEnhMetafile          ((WStyle)0x0000000FL) // SS_ENHMETAFILE
  52. #define WSSEtchedHorz           ((WStyle)0x00000010L) // SS_ETCHEDHORZ
  53. #define WSSEtchedVert           ((WStyle)0x00000011L) // SS_ETCHEDVERT
  54. #define WSSEtchedFrame          ((WStyle)0x00000012L) // SS_ETCHEDFRAME
  55. #define WSSNoPrefix             ((WStyle)0x00000080L) // SS_NOPREFIX
  56. #define WSSNotify               ((WStyle)0x00000100L) // SS_NOTIFY
  57. #define WSSCenterImage          ((WStyle)0x00000200L) // SS_CENTERIMAGE
  58. #define WSSRightJust            ((WStyle)0x00000400L) // SS_RIGHTJUST
  59. #define WSSRealSizeImage        ((WStyle)0x00000800L) // SS_REALSIZEIMAGE
  60. #define WSSSunken               ((WStyle)0x00001000L) // SS_SUNKEN
  61.  
  62. class WCMCLASS WStatic : public WControl {
  63.     WDeclareSubclass( WStatic, WControl );
  64.  
  65.     public:
  66.  
  67.         /**********************************************************
  68.          * Constructors and Destructors
  69.          *********************************************************/
  70.  
  71.         WStatic();
  72.     
  73.         ~WStatic();
  74.     
  75.         /**********************************************************
  76.          * Properties
  77.          *********************************************************/
  78.     
  79.         /**********************************************************
  80.          * Methods
  81.          *********************************************************/
  82.  
  83.         /**********************************************************
  84.          * Overrides
  85.          *********************************************************/
  86.     
  87.         virtual WStyle GetDefaultStyle() const;
  88.  
  89.         virtual const WChar * InitializeClass();
  90.  
  91.         /**********************************************************
  92.          * Overrides
  93.          *********************************************************/
  94.  
  95.         WBool HitTestEventHandler( WWindow * window,
  96.                                    WHitTestEventData * event );
  97. };
  98.  
  99. #ifndef _WNO_PRAGMA_PUSH
  100. #pragma enum pop;
  101. #pragma pack(pop);
  102. #endif
  103.  
  104. #endif // _WSTATIC_HPP_INCLUDED
  105.