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.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT: Laserguard libraries
// SUBSYSTEM: MFC support library
// FILE: ListWnd.h
// AUTHOR: Chizhevskiy Sergey
// OVERVIEW
// ~~~~~~~~
// Header file of CLgListWnd
//----------------------------------------------------------------------------
#ifndef __LIST__WND__H__INCLUDED__
#define __LIST__WND__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include "MemoryDC.h"
class CLgListWnd : public CWnd{public: CLgListWnd(); virtual ~CLgListWnd();
public: //{{AFX_VIRTUAL(CLgListWnd)
public: virtual BOOL DestroyWindow(); //}}AFX_VIRTUAL
public: virtual BOOL Create( CWnd *pParentWnd, int x, int y, int nWidth, int nHeight );
public: void* GetItemActive(); void* GetItemFromPoint( CPoint* pPoint ); void* GetItem( INT nIndex ); INT GetItemCount() { return m_ArrayItem.GetSize(); } BOOL SetItemSize( CSize size ); CSize GetItemSize() { return m_ItemSize; }
public: BOOL Remove( void* pItem ); BOOL Add( void* pItem ); BOOL IsExist( void* pItem ); BOOL Activate( void* pItem ); void RemoveAll();
protected: virtual void OnItemMove( void* pItem, CRect *pRect, BOOL bShow, BOOL bActive ) {} virtual void OnItemAdd( void* pItem ) {} virtual void OnItemRemove( void *pItem ) {} virtual void OnItemDraw( CDC *pDC, CRect *pRect, void *pItem, BOOL bActive ) {} virtual void OnItemActivate( void *pItem, BOOL bActive ) {}
protected: //{{AFX_MSG(CLgListWnd)
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; int m_nItemActive; CArray< void*, void* > m_ArrayItem; CLgMemoryDC m_MemoryDC;};
//{{AFX_INSERT_LOCATION}}
#endif
|