Click here to Skip to main content
15,879,535 members
Articles / Programming Languages / Visual Basic 6

Professional System Library: Introduction

Rate me:
Please Sign up or sign in to vote.
4.84/5 (93 votes)
22 Nov 2010CPOL14 min read 190.5K   3.4K   232  
A simplified and unified way for accessing most frequently used information about Process, System, and Environment.
// 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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Sibedge IT
Ireland Ireland
My online CV: cv.vitalytomilov.com

Comments and Discussions