home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / hpp.z / WCOMBTTN.HPP < prev    next >
C/C++ Source or Header  |  1996-10-18  |  3KB  |  105 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. /*************************************************************************
  12.  *
  13.  * WCommandButton -- Wrapper for the Windows 95 Push button control.
  14.  *
  15.  *   Events:
  16.  *
  17.  *************************************************************************/
  18.  
  19. #ifndef _WCOMBTTN_HPP_INCLUDED
  20. #define _WCOMBTTN_HPP_INCLUDED
  21.  
  22. #ifndef _WNO_PRAGMA_PUSH
  23. #pragma pack(push,8);
  24. #pragma enum int;
  25. #endif
  26.  
  27. #ifndef _WBUTTON_HPP_INCLUDED
  28. #  include "wbutton.hpp"
  29. #endif
  30.  
  31. class WCMCLASS WCommandButton : public WButton {
  32.  
  33.     WDeclareSubclass( WCommandButton, WButton )
  34.  
  35.     public:
  36.     
  37.         /**************************************************************
  38.          * Constructors and Destructors
  39.          **************************************************************/
  40.  
  41.         WCommandButton();
  42.     
  43.         ~WCommandButton();
  44.     
  45.         /**************************************************************
  46.          * Properties
  47.          **************************************************************/
  48.  
  49.         // Cancel
  50.  
  51.         WBool SetCancel( WBool iscancel );
  52.         WBool GetCancel();
  53.  
  54.         // FDXDataSource
  55.  
  56.         WBool SetFDXDataSource( WBool * fdxDataSource );
  57.  
  58.         // Default
  59.  
  60.         WBool SetDefault( WBool isDefault );
  61.         WBool GetDefault();
  62.  
  63.         // Pressed
  64.  
  65.         WBool SetPressed( WBool pressed );
  66.         WBool GetPressed() const;
  67.  
  68.         /**************************************************************
  69.          * Methods
  70.          **************************************************************/
  71.  
  72.         /**************************************************************
  73.          * Overrides
  74.          **************************************************************/
  75.  
  76.         virtual WBool FDXIn();
  77.  
  78.         virtual WBool FDXOut();
  79.  
  80.         virtual WBool AutoSize();
  81.  
  82.         virtual const WChar * InitializeClass();
  83.  
  84.         virtual WStyle GetDefaultStyle() const;
  85.  
  86.         virtual WBool CloneWindow( WStyle newStyle, WStyle newExStyle,
  87.                                    void * data=NULL );
  88.  
  89.         /**************************************************************
  90.          * Data members
  91.          **************************************************************/
  92.  
  93.     private:
  94.  
  95.         WBool *         _fdxDataSource;
  96.         WBool           _cancel;
  97. };
  98.  
  99. #ifndef _WNO_PRAGMA_PUSH
  100. #pragma enum pop;
  101. #pragma pack(pop);
  102. #endif
  103.  
  104. #endif // _WCOMBTTN_HPP_INCLUDED
  105.