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