home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / hpp.z / WOLEVWOB.HPP < prev    next >
C/C++ Source or Header  |  1996-11-04  |  3KB  |  101 lines

  1. /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2.    %     Copyright (C) 1996, 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.  * WOleViewableObject -- Ole Viewable Object interface family
  14.  *
  15.  *   Events:
  16.  *
  17.  *      ViewableObjectDraw      -- displays viewable object
  18.  *
  19.  *************************************************************************/
  20.  
  21. #ifndef _WOLEVWOB_HPP_INCLUDED
  22. #define _WOLEVWOB_HPP_INCLUDED
  23.  
  24. #ifndef _WNO_PRAGMA_PUSH
  25. #pragma pack(push,8);
  26. #pragma enum int;
  27. #endif
  28.  
  29. #ifndef _WOLETYPE_HPP_INCLUDED
  30. #  include "woletype.hpp"
  31. #endif
  32. #ifndef _WOLEIFAM_HPP_INCLUDED
  33. #  include "woleifam.hpp"
  34. #endif
  35.  
  36. typedef int ( __stdcall *WVOContinueFn )( WDWord dwContinue );
  37.  
  38. struct WViewableObjectDrawEventData : public WEventData {
  39.     WDWord              dwDrawAspect;
  40.     WLong               lindex;
  41.     void                *pvAspect;
  42.     WDVTargeTDevice     *ptd;
  43.     WDeviceHandle       hdcTargetDev;
  44.     WDeviceHandle       hdcDraw;
  45.     WRect               rectBounds;
  46.     WRect               rectWBounds;
  47.     WVOContinueFn       pfnContinue;
  48.     WDWord              dwContinue;
  49. };
  50.  
  51. // forward class declarations
  52. class WOleViewableObject_IVO2;
  53.  
  54. class WCMCLASS WOleViewableObject : public WOleInterfaceFamily
  55. {
  56.     WDeclareSubclass( WOleViewableObject, WOleInterfaceFamily );
  57.  
  58.     friend class WOleViewableObject_IVO2;
  59.     
  60.     public:
  61.  
  62.     /**********************************************************
  63.      * Constructors and Destructors
  64.      *********************************************************/
  65.         WOleViewableObject( WOleServerObject *serverObject );
  66.         virtual ~WOleViewableObject();
  67.  
  68.     /**************************************************************
  69.      * Properties
  70.      **************************************************************/
  71.  
  72.     /**************************************************************
  73.      * Methods
  74.      **************************************************************/
  75.  
  76.         // overrides
  77.         virtual WBool QueryInterface( const WCLSID & clsid, void **iface );
  78.  
  79.     /**********************************************************
  80.      * Operators
  81.      *********************************************************/
  82.  
  83.     /**********************************************************
  84.      * Data Members
  85.      *********************************************************/
  86.  
  87.     protected:
  88.  
  89.         WOleViewableObject_IVO2 *_pIViewObject2;
  90.  
  91. };
  92.  
  93.     
  94. #ifndef _WNO_PRAGMA_PUSH
  95. #pragma enum pop;
  96. #pragma pack(pop);
  97. #endif
  98.  
  99. #endif // _WOLEVWOB_HPP_INCLUDED
  100.  
  101.