Old fashion design for PC-104
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.
 
 
 
 
 

79 lines
1.9 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 25/11/2001
// PROJECT:
// SUBSYSTEM:
// FILE: ListWnd.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of ListWnd.h
//----------------------------------------------------------------------------
#ifndef __LIST__WND__H__INCLUDED__
#define __LIST__WND__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include "..\..\LgLib\MFC\MemoryDC.h"
class CListWnd : public CWnd
{
public:
CListWnd();
virtual ~CListWnd();
public:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CListWnd)
public:
virtual BOOL DestroyWindow();
//}}AFX_VIRTUAL
public:
virtual BOOL Create( CWnd *pParentWnd, int x, int y, int nWidth, int nHeight );
public:
void* GetItemFromPoint( CPoint* pPoint );
BOOL SetItemSize( CSize size );
BOOL Remove( void* pItem );
BOOL Add( void* pItem );
void RemoveAll();
protected:
virtual void OnItemMove( void* pItem, CRect *pRect, BOOL bShow ) {}
virtual void OnItemAdd( void* pItem ) {}
virtual void OnItemRemove( void *pItem ) {}
virtual void OnItemDraw( CDC *pDC, CRect *pRect, void *pItem ) {}
protected:
//{{AFX_MSG(CListWnd)
afx_msg void OnPaint();
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
BOOL GetItemRect( INT nIndex, CRect* pRect );
void MoveItems();
protected:
CSize m_ItemSize;
CSize m_Space;
CSize m_Dimensions;
int m_nItemVisibleFirst;
int m_nItemVisibleLast;
int m_nItemScrollMin;
int m_nItemScrollMax;
int m_nItemScrollPos;
CArray< void*, void* > m_ArrayItem;
CMemoryDC m_MemoryDC;
};
//{{AFX_INSERT_LOCATION}}
#endif