Sha256: cccfa012111c371743b124a0aed8aa8f0c7c2f09f2d1ac381c71cb879ab1b159

Contents?: true

Size: 1.5 KB

Versions: 14

Compression:

Stored size: 1.5 KB

Contents

#include "stdafx.h"

#include "Paint.h"

/******************************************************************************/
CPaintMap::CPaintMap (int appid, HWND hwnd, PBModule *pmodule, PAINTCALLBACK *pcallback)
{
	nAppID = appid;
	hWnd = hwnd;
	pModule = pmodule;
	pCallback = pcallback;
	pNext = NULL;
}

/******************************************************************************/
CPaintManager::CPaintManager()
{
	pHead = NULL;
}

/******************************************************************************/
CPaintManager::~CPaintManager()
{
	Clear ();
}

/******************************************************************************/
BOOL CPaintManager::AddMap (CPaintMap *pmap)
{
	CPaintMap *pentry = pHead;

	// Add map to list, pNext already initialised to zero in CPaintMap constructor
	if (!pHead)
	{
		pHead = pmap;
		return TRUE;
	}

	// Walk to end of list
	for (pentry = pHead; pentry->pNext; pentry = pentry->pNext)
		;

	// Add new map
	pentry->pNext = pmap;

	return TRUE;
}

/******************************************************************************/
void CPaintManager::Clear()
{
	CPaintMap *pmap, *pnext;

	pmap = pHead;
	while (pmap)
	{
		pnext = pmap->pNext;
		delete pmap;
		pmap = pnext;
	}
}

/******************************************************************************/
void CPaintManager::Process (HWND hwnd, HDC hdc)
{
	CPaintMap *pentry;

	for (pentry = pHead; pentry; pentry = pentry->pNext)
	{
		if (pentry->hWnd == hwnd)
			(pentry->pCallback) (pentry->pModule, pentry->nAppID, hdc);
	}
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rhodes-7.6.0 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-7.5.1 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-7.4.1 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-7.1.17 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-6.2.0 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-6.0.11 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-5.5.18 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-5.5.17 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-5.5.15 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-5.5.0.22 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-5.5.2 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-5.5.0.7 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-5.5.0.3 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp
rhodes-5.5.0 neon/Helium/HeliumForWindows/Implementation/PBCore/PBCore/Paint.cpp