home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / hpp.z / WCALLBCK.HPP < prev    next >
C/C++ Source or Header  |  1996-10-18  |  1KB  |  40 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 _WCALLBCK_HPP_INCLUDED
  12. #define _WCALLBCK_HPP_INCLUDED
  13.  
  14. #ifndef _WNO_PRAGMA_PUSH
  15. #pragma pack(push,8);
  16. #pragma enum int;
  17. #endif
  18.  
  19. #ifndef _WOBJECT_HPP_INCLUDED
  20. #  include "wobject.hpp"
  21. #endif
  22.  
  23. class WRect;
  24.  
  25. template < class Y >
  26. class WCMCLASS WCallbackBase {
  27.  
  28.     public:
  29.         virtual void Invoke( Y ) { /* stub */ }
  30. };
  31.  
  32. typedef WCallbackBase<const WRect &> WRectCallback;
  33.  
  34. #ifndef _WNO_PRAGMA_PUSH
  35. #pragma enum pop;
  36. #pragma pack(pop);
  37. #endif
  38.  
  39. #endif // _WCALLBCK_HPP_INCLUDED
  40.