Back

// PSLRect.cpp : Implementation of CPSLRect

#include "stdafx.h"
#include "PSLRect.h"

CPSLRect::CPSLRect()
{
   ::memset(&m_Rect, 0, sizeof(RECT));
}

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

void CPSLRect::FinalRelease()
{
}

void CPSLRect::Initialize(LPRECT lpRect)
{
   m_Rect = *lpRect;
}

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

STDMETHODIMP CPSLRect::get_Left(long * pValue)
{
   PSL_BEGIN

   *pValue = m_Rect.left;

   PSL_END
}

STDMETHODIMP CPSLRect::get_Top(long * pValue)
{
   PSL_BEGIN

   *pValue = m_Rect.top;

   PSL_END
}

STDMETHODIMP CPSLRect::get_Right(long * pValue)
{
   PSL_BEGIN

   *pValue = m_Rect.right;

   PSL_END
}

STDMETHODIMP CPSLRect::get_Bottom(long * pValue)
{
   PSL_BEGIN

   *pValue = m_Rect.bottom;

   PSL_END
}

Top