source: trunk/src/oleaut32/old/iPictureNone.cpp

Last change on this file was 6505, checked in by sandervl, 24 years ago

backup of David's changes

File size: 1.6 KB
Line 
1/* $Id: iPictureNone.cpp,v 1.1 2001-08-10 19:24:44 sandervl Exp $ */
2/*
3 * OLE Picture Metafile Strategy object
4 *
5 * 20/11/99 - New Code
6 *
7 * Copyright 1999 David J. Raison
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 */
12
13#include "oleaut32.h"
14#include "olectl.h"
15#include "ipicture.h"
16
17// ----------------------------------------------------------------------
18// Uninitialised Picture
19// ----------------------------------------------------------------------
20HRESULT IPictureNone::get_Handle(OLE_HANDLE * pHandle)
21{
22 *pHandle = 0;
23 return E_FAIL;
24}
25
26HRESULT IPictureNone::get_hPal(OLE_HANDLE * phPal)
27{
28 *phPal = 0;
29 return E_FAIL;
30}
31
32HRESULT IPictureNone::get_Type(SHORT * pType)
33{
34 *pType = PICTYPE_UNINITIALIZED;
35 return S_OK;
36}
37
38HRESULT IPictureNone::get_Width(OLE_XSIZE_HIMETRIC * pWidth)
39{
40 *pWidth = 0;
41 return E_FAIL;
42}
43
44HRESULT IPictureNone::get_Height(OLE_YSIZE_HIMETRIC * pHeight)
45{
46 *pHeight = 0;
47 return E_FAIL;
48}
49
50HRESULT IPictureNone::Render(HDC hdc, LONG x, LONG y, LONG cx, LONG cy,
51 OLE_XPOS_HIMETRIC xSrc, OLE_YPOS_HIMETRIC ySrc,
52 OLE_XSIZE_HIMETRIC cxSrc, OLE_YSIZE_HIMETRIC cySrc,
53 LPCRECT pRcWBounds)
54{
55 return E_FAIL;
56}
57
58HRESULT IPictureNone::set_hPal(OLE_HANDLE hPal)
59{
60 return E_FAIL;
61}
62
63HRESULT IPictureNone::SaveAsFile(LPSTREAM pStream, BOOL fSaveMemCopy, LONG * pCbSize)
64{
65 return E_FAIL;
66}
67
68HRESULT IPictureNone::get_Attributes(DWORD * pDwAttr)
69{
70 *pDwAttr = 0;
71 return S_OK;
72}
73
74IPictureBmp::IPictureBmp(IPictureImpl * a_pPicture, HBITMAP hbitmap, HPALETTE hpal)
75 : IPictureStrat(a_pPicture)
76{
77 pPicture->u.bmp.hbitmap = hbitmap;
78 pPicture->u.bmp.hpal = hpal;
79}
80
Note: See TracBrowser for help on using the repository browser.