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.
82 lines
2.3 KiB
82 lines
2.3 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: ImageWnd.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of ImageWnd.h
|
|
//----------------------------------------------------------------------------
|
|
#if !defined(AFX_IMAGEWND_H__489DBF44_55BA_4047_991A_4D4396255203__INCLUDED_)
|
|
#define AFX_IMAGEWND_H__489DBF44_55BA_4047_991A_4D4396255203__INCLUDED_
|
|
|
|
#include "..\..\LgLib\MFC\MemoryDC.h"
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#define WM_IMAGE_LBUTTONDOWN (WM_USER+1)
|
|
#define WM_IMAGE_LBUTTONUP (WM_USER+2)
|
|
#define WM_IMAGE_MOUSEMOVE (WM_USER+3)
|
|
|
|
#include "..\DLIB\ObjectFactory.h"
|
|
|
|
using namespace OFNS;
|
|
typedef CList<COFTemplateDCBit*,COFTemplateDCBit*> CBitList;
|
|
|
|
class CImageWnd : public CWnd
|
|
{
|
|
// Construction
|
|
public:
|
|
CImageWnd();
|
|
|
|
// Attributes
|
|
public:
|
|
|
|
// Operations
|
|
public:
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CImageWnd)
|
|
protected:
|
|
virtual void PostNcDestroy();
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
CBitList* GetBitList() { return &m_List; }
|
|
void SetImage( HBITMAP hBitmap );
|
|
void SetImage( CBitmap *pBitmap );
|
|
void SetImage( CString& file );
|
|
void SetImage( LPBITMAPINFO pBmi, LPBYTE pBuffer );
|
|
BOOL Create( CWnd *pParentWnd, int x, int y, int cx, int cy );
|
|
BOOL Create( CWnd *pParentWnd, CRect *pRect );
|
|
virtual ~CImageWnd();
|
|
|
|
// Generated message map functions
|
|
protected:
|
|
//{{AFX_MSG(CImageWnd)
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
|
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
|
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
private:
|
|
CDC m_CopyDC;
|
|
CLgMemoryDC m_MemDC;
|
|
CBitList m_List;
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_IMAGEWND_H__489DBF44_55BA_4047_991A_4D4396255203__INCLUDED_)
|