
// @(#) 1.6 nt/src/imaging/idl/WinPCanv.idl, odimaging, od96nt, odnt9712d 7/15/96 17:52:08 [ 3/21/97 17:13:47 ]
/********************************************************************/
/*  Licensed Materials - Property of IBM                            */
/*                                                                  */
/*                                                                  */
/* Copyright (C) International Business Machines Corp., 1994.       */
/* Copyright (C) Apple Computer, Inc., 1994                         */
/*                                                                  */
/*  US Government Users Restricted Rights -                         */
/*  Use, duplication, or disclosure restricted                      */
/*  by GSA ADP Schedule Contract with IBM Corp.                     */
/*                                                                  */
/*                                                                  */
/********************************************************************/

#ifndef _WINPCANV_
#define _WINPCANV_

//==============================================================================
// Mac OS types used in this interface
//==============================================================================

#ifndef _PLATCANV_
#include "PlatCanv.idl"
#endif // _PLATCANV_

//==============================================================================
// Classes defined in this interface
//==============================================================================
interface ODWin32Canvas;

//==============================================================================
// ODWin32Canvas
//==============================================================================

interface ODWin32Canvas :  ODPlatformCanvas
{

   void InitPlatformCanvas( in HDC hdc );

   void	InitPlatformWindowCanvas( in HWND window );

   HDC GetDC( );

   void ReleaseDC( );

   HWND GetWindow( );

   void SetMetafileExtent( in SIZE *metafileExtent );

   ODBoolean GetMetafileExtent( out SIZE metafileExtent );

#ifdef __SOMIDL__
  implementation
  {
  majorversion = 1; minorversion = 0;

  releaseorder:
    InitPlatformCanvas,
    InitPlatformWindowCanvas,
    GetDC,
    ReleaseDC,
    GetWindow,
    SetMetafileExtent,
    GetMetafileExtent;

  override:
    CreateConcreteCanvas,
    GetSystemType,
    HasWindow,
    IsInitialized,
    GetPlatformCanvasType;

  functionprefix = ODWin32Canvas;

  };
#endif
};

#endif // _WINPCANV_

