Back

// PSLSize.cpp : Implementation of CPSLSize

#include "stdafx.h"
#include "PSLSize.h"


CPSLSize::CPSLSize()
{
   ::memset(&m_Size, 0, sizeof(SIZE));
}

HRESULT CPSLSize::FinalConstruct()
{
   return S_OK;
}

void CPSLSize::FinalRelease()
{
}

void CPSLSize::Initialize(LPSIZE lpSize)
{
   m_Size = *lpSize;
}

////////////////////////////////////////////////////////////////////////
// Interface Implementation;
////////////////////////////////////////////////////////////////////////

STDMETHODIMP CPSLSize::get_Width(long * pValue)
{
   PSL_BEGIN

   *pValue = m_Size.cx;

   PSL_END
}

STDMETHODIMP CPSLSize::get_Height(long * pValue)
{
   PSL_BEGIN

   *pValue = m_Size.cy;

   PSL_END
}

Top