[6505] | 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 | // ----------------------------------------------------------------------
|
---|
| 20 | HRESULT IPictureNone::get_Handle(OLE_HANDLE * pHandle)
|
---|
| 21 | {
|
---|
| 22 | *pHandle = 0;
|
---|
| 23 | return E_FAIL;
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | HRESULT IPictureNone::get_hPal(OLE_HANDLE * phPal)
|
---|
| 27 | {
|
---|
| 28 | *phPal = 0;
|
---|
| 29 | return E_FAIL;
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | HRESULT IPictureNone::get_Type(SHORT * pType)
|
---|
| 33 | {
|
---|
| 34 | *pType = PICTYPE_UNINITIALIZED;
|
---|
| 35 | return S_OK;
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | HRESULT IPictureNone::get_Width(OLE_XSIZE_HIMETRIC * pWidth)
|
---|
| 39 | {
|
---|
| 40 | *pWidth = 0;
|
---|
| 41 | return E_FAIL;
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 | HRESULT IPictureNone::get_Height(OLE_YSIZE_HIMETRIC * pHeight)
|
---|
| 45 | {
|
---|
| 46 | *pHeight = 0;
|
---|
| 47 | return E_FAIL;
|
---|
| 48 | }
|
---|
| 49 |
|
---|
| 50 | HRESULT 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 |
|
---|
| 58 | HRESULT IPictureNone::set_hPal(OLE_HANDLE hPal)
|
---|
| 59 | {
|
---|
| 60 | return E_FAIL;
|
---|
| 61 | }
|
---|
| 62 |
|
---|
| 63 | HRESULT IPictureNone::SaveAsFile(LPSTREAM pStream, BOOL fSaveMemCopy, LONG * pCbSize)
|
---|
| 64 | {
|
---|
| 65 | return E_FAIL;
|
---|
| 66 | }
|
---|
| 67 |
|
---|
| 68 | HRESULT IPictureNone::get_Attributes(DWORD * pDwAttr)
|
---|
| 69 | {
|
---|
| 70 | *pDwAttr = 0;
|
---|
| 71 | return S_OK;
|
---|
| 72 | }
|
---|
| 73 |
|
---|
| 74 | IPictureBmp::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 |
|
---|