|
// 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
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.