You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.4 KiB
58 lines
1.4 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: BackgroundDrawThread.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of BackgroundDrawThread.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __MAP__DRAW__THREAD__H__INCLUDED__
|
|
#define __MAP__DRAW__THREAD__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "..\..\LgLib\Thread.h"
|
|
#include "..\..\LgLib\MFC\MemoryDC.h"
|
|
#include "..\DLIB\Background.h"
|
|
|
|
#pragma message( "NOTE: Should be removed into another place (WM_DRAW_THREAD)" )
|
|
|
|
#define WM_BACKGROUND_DRAW_THREAD (WM_USER+1)
|
|
|
|
class CBackgroundDrawThread :
|
|
public CLgThread
|
|
{
|
|
public:
|
|
CBackgroundDrawThread();
|
|
virtual ~CBackgroundDrawThread();
|
|
|
|
public:
|
|
BOOL Create( CWnd *pWnd, CBackground *pBackground );
|
|
void Destroy();
|
|
|
|
public:
|
|
BOOL InitDraw( LPRECT pWndRect, LPRECT pDstRect );
|
|
BOOL Draw( CDC *pDC );
|
|
|
|
private:
|
|
virtual DWORD ThreadProc();
|
|
|
|
private:
|
|
CLgMemoryDC m_MemoryDC;
|
|
HANDLE m_hMutexData;
|
|
HANDLE m_hMutexDraw;
|
|
HANDLE m_hEventDraw;
|
|
CRect m_WndRect;
|
|
CRect m_DstRect;
|
|
CBackground *m_pBackground;
|
|
HWND m_hWnd;
|
|
};
|
|
|
|
#endif
|