home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / atltangram / atltangramcanvas / atltangramcanvas.idl < prev    next >
Text File  |  1998-03-26  |  1KB  |  44 lines

  1. // ATLTangramCanvas.idl : IDL source for ATLTangramCanvas.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (ATLTangramCanvas.tlb) and marshalling code.
  6.  
  7. import "oaidl.idl";
  8. import "ocidl.idl";
  9.  
  10.     [
  11.         object,
  12.         uuid(8FAD674F-AD34-11D0-B69F-00A0C903487A),    
  13.         helpstring("IAtlTangramCanvas Interface"),
  14.         pointer_default(unique)
  15.     ]
  16.     interface IAtlTangramCanvas : IUnknown
  17.     {
  18.         HRESULT Initialize([in] HWND hWnd, [in] long cx, [in] long cy) ;
  19.         HRESULT Paint([in] HDC hdcDest, [in] RECT rectUpdate) ;
  20.         HRESULT Update([in] RECT rectUpdate) ;
  21.         HRESULT GetHDC([out] HDC* pHDC) ;  
  22.         HRESULT SetPalette([in]HPALETTE hPal); 
  23.         HRESULT OnQueryNewPalette([in] HWND hWndReceived) ;
  24.     };
  25. [
  26.     uuid(8FAD6740-AD34-11D0-B69F-00A0C903487A),
  27.     version(1.0),
  28.     helpstring("ATLTangramCanvas 1.0 Type Library")
  29. ]
  30. library ATLTANGRAMCANVASLib
  31. {
  32.     importlib("stdole32.tlb");
  33.     importlib("stdole2.tlb");
  34.  
  35.     [
  36.         uuid(8FAD6750-AD34-11D0-B69F-00A0C903487A),
  37.         helpstring("AtlTangramCanvas Class")
  38.     ]
  39.     coclass AtlTangramCanvas
  40.     {
  41.         [default] interface IAtlTangramCanvas;
  42.     };
  43. };
  44.