|
// 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
}
|
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.