
/***************************************************************************
**
**    $Header:   D:/ECB2S/SRC/LOG/BMEMVIEW.H__   1.2.1.5   17 Apr 1997 15:42:04   ZJRD  $
**
**    $Log:   D:/ECB2S/SRC/LOG/BMEMVIEW.H__  $
** 
**    Rev 1.2.1.5   17 Apr 1997 15:42:04   ZJRD
** No change.
** 
**    Rev 1.2.1.4   16 Apr 1997 10:16:10   ZJRD
** No change.
** 
**    Rev 1.2.1.3   10 Apr 1997 15:28:02   ZJRD
** 2.09F
** 
**    Rev 1.2.1.1   03 Apr 1997 15:09:42   ZJRD
** No change.
** 
**    Rev 1.2.1.0   28 Mar 1997 10:14:40   ZJRD
** easy pack sld 2.09d
** 
**    Rev 1.1   19 Mar 1997 11:25:58   ZJRD
** No change.
** 
**    Rev 1.0   12 Mar 1997 14:44:42   ZJRD
** Initial revision.
** 
**    Rev 1.7.1.0.1.2   09 Dec 1996 10:17:38   ZJRD
** EasyPack/SLD Version 2.0P
** 
**    Rev 1.7.1.0.1.0   11 Nov 1996 13:00:54   ZJRD
** EasyPack/SLD Version 2.01
** 
**    Rev 1.7.1.4   09 Sep 1996 13:22:10   ZJRD
** No change.
** 
**    Rev 1.7.1.3   05 Sep 1996 11:33:38   ZJRD
** No change.
** 
**    Rev 1.7.1.2   02 Sep 1996 10:00:40   ZJRD
** No change.
** 
**    Rev 1.7.1.1   28 Aug 1996 15:44:00   ZJRD
** No change.
** 
**    Rev 1.7.1.0   12 Aug 1996 10:49:22   ZJRD
** EasyPack/SLD Version 1.98
** 
**    Rev 1.6.1.0   19 Jul 1996 09:54:04   ZJRD
** EasyPack/SLD Version 1.20b
** 
**    Rev 1.8   20 Jun 1996 09:27:42   ZJRD
** EasyPack/SLD Version 1.20a
** 
**    Rev 1.6   10 Jun 1996 10:22:20   ZJRD
** EasyPack/SLD Version 1.20
** 
**    Rev 1.4   29 May 1996 09:33:00   ZJRD
** No change.
** 
**    Rev 1.3   16 May 1996 09:05:06   ZJRD
** No change.
** 
**    Rev 1.2   10 May 1996 09:13:58   ZJRD
** No change.
** 
**    Rev 1.1   02 May 1996 10:24:32   ZJRD
** EasyPack/SLD Version 1.92
** 
**    Rev 1.31   18 Apr 1996 12:53:48   Shirley
** EasyPack/SLD Version 1.91
** 
**    Rev 1.30   12 Apr 1996 10:40:38   Shirley
** EasyPack/SLD Version 1.90
** 
**    Rev 1.28   15 Feb 1996 08:54:06   Shirley
** No change.
** 
**    Rev 1.27   12 Feb 1996 14:09:24   Shirley
** No change.
** 
**    Rev 1.26   06 Feb 1996 15:35:48   Shirley
** No change.
** 
**    Rev 1.25   06 Feb 1996 13:50:04   Shirley
** No change.
** 
**    Rev 1.24   01 Feb 1996 10:14:34   Shirley
** No change.
** 
**    Rev 1.23   26 Jan 1996 09:20:28   Shirley
** No change.
** 
**    Rev 1.22   25 Jan 1996 13:20:22   Shirley
** No change.
** 
**    Rev 1.21   24 Jan 1996 10:37:38   Shirley
** No change.
** 
**    Rev 1.20   23 Jan 1996 11:23:08   Shirley
** No change.
** 
**    Rev 1.19   18 Jan 1996 10:12:34   Shirley
** No change.
** 
**    Rev 1.18   15 Jan 1996 16:15:34   Shirley
** No change.
** 
**    Rev 1.17   04 Jan 1996 11:09:20   Shirley
** No change.
** 
**    Rev 1.16   30 Nov 1995 09:12:58   Shirley
** No change.
** 
**    Rev 1.15   28 Nov 1995 15:35:16   Shirley
** No change.
** 
**    Rev 1.14   21 Nov 1995 11:24:30   Shirley
** No change.
** 
**    Rev 1.13   13 Nov 1995 09:25:24   Shirley
** No change.
** 
**    Rev 1.12   12 Nov 1995 11:28:22   Shirley
** No change.
** 
**    Rev 1.11   08 Nov 1995 16:29:08   Shirley
** No change.
** 
**    Rev 1.10   08 Nov 1995 12:41:40   Shirley
** No change.
** 
**    Rev 1.9   02 Nov 1995 10:07:24   Shirley
** No change.
** 
**    Rev 1.8   27 Oct 1995 16:47:02   Shirley
** No change.
** 
**    Rev 1.7   27 Oct 1995 13:48:12   Shirley
** No change.
** 
**    Rev 1.6   25 Oct 1995 14:29:28   Shirley
** No change.
** 
**    Rev 1.5   18 Oct 1995 14:49:16   Shirley
** No change.
** 
**    Rev 1.4   13 Oct 1995 13:23:16   Shirley
** No change.
** 
**    Rev 1.3   29 Sep 1995 09:51:04   Shirley
** No change.
** 
**    Rev 1.2   20 Sep 1995 10:58:10   Shirley
** No change.
** 
**    Rev 1.1   15 Sep 1995 09:48:48   Shirley
** EasyPack/SLDV0.1a 
** 
**    Rev 1.0   07 Sep 1995 09:54:00   Shirley
** Initial revision.
**
****************************************************************************/

/////////////////////////////////////////////////////////////////////////////
//
//  File name:  BMEMVIEW.H
//
//  Description:The header file for the class: CBMemoryView
//
//  Author:     Lane Li & Daniel Lin
//
//  Date:       09/10/95
//
//  Modification:
//
//      1. 09/10/95, Initial version
//
//
//  Copyright (C) 1995 Microtek International. All rights reserved.
//
/////////////////////////////////////////////////////////////////////////////

// bmemview.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CBMemoryView view

class CBMemoryView : public CScrollView
{
   DECLARE_DYNCREATE(CBMemoryView)
public:
   CBMemoryView();         // protected constructor used by dynamic creation
   virtual ~CBMemoryView();
   void  SetMyCaret();
   BOOL  IsCaretIn();
   void  SwitchBit(POINT);
   void  ShowStatusGo();
   
// Attributes
public:
   CWnd* m_pParent;
   UINT m_nTextBegin;
   UINT m_nDxWidth;
   UINT m_nDxHeight;
   POINT m_pointCaret;
   BYTE* m_bBitMem;
   
// Operations
public:

// Implementation
protected:
   virtual  void OnDraw(CDC* pDC);     // overridden to draw this view
   virtual  void OnInitialUpdate();    // first time after construct

   // Generated message map functions
   //{{AFX_MSG(CBMemoryView)
   afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
   afx_msg void OnSize(UINT nType, int cx, int cy);
   afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
   afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
   afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
   afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
   afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
   afx_msg void OnEditBit();
   afx_msg void OnUpdateEditBit(CCmdUI* pCmdUI);
   afx_msg void OnSetFocus(CWnd* pOldWnd);
   afx_msg void OnViewRefresh();
   afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
   afx_msg UINT OnNcHitTest(CPoint point);
   //}}AFX_MSG
   DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
