home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / optima / hpp.z / WHOTKEY.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-07  |  2.4 KB  |  79 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.  * WHotKey -- Wrapper for the Windows 95 Hot-Key control.
  14.  *
  15.  *************************************************************************/
  16.  
  17. #ifndef _WHOTKEY_HPP_INCLUDED
  18. #define _WHOTKEY_HPP_INCLUDED
  19.  
  20. #ifndef _WNO_PRAGMA_PUSH
  21. #pragma pack(push,4);
  22. #pragma enum int;
  23. #endif
  24.  
  25. #ifndef _WCONTROL_HPP_INCLUDED
  26. #  include "wcontrol.hpp"
  27. #endif
  28.  
  29. //
  30. // HotKey styles
  31. //
  32.  
  33. #define WHKSDefault             ((WStyle)0x50000000L) // WS_VISIBLE|WS_CHILD
  34.  
  35. class WCMCLASS WHotKey : public WControl {
  36.     WDeclareSubclass( WHotKey, WControl );
  37.  
  38.     public:
  39.     
  40.         /**********************************************************
  41.          * Constructors and destructors
  42.          *********************************************************/
  43.  
  44.         WHotKey();
  45.     
  46.         ~WHotKey();
  47.  
  48.         /**********************************************************
  49.          * Properties
  50.          *********************************************************/
  51.  
  52.         // HotKey
  53.  
  54.         WHotKeyInfo GetHotKey();
  55.         WBool SetHotKey( const WHotKeyInfo & hotKey );
  56.  
  57.         /**********************************************************
  58.          * Methods
  59.          *********************************************************/
  60.  
  61.         /**********************************************************
  62.          * Overrides
  63.          *********************************************************/
  64.  
  65.         virtual const WChar * InitializeClass();
  66.  
  67.         virtual WStyle GetDefaultStyle() const;
  68.  
  69.         virtual WBool CloneWindow( WStyle newStyle, WStyle newExStyle,
  70.                                    void * data=NULL );
  71. };
  72.  
  73. #ifndef _WNO_PRAGMA_PUSH
  74. #pragma enum pop;
  75. #pragma pack(pop);
  76. #endif
  77.  
  78. #endif // _WHOTKEY_HPP_INCLUDED
  79.