⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 codememlist.cpp

📁 计算机体系结构中,关于DLXS的模拟程序.在vc6.0下编译通过.
💻 CPP
字号:
// CodeMemList.cpp : implementation file
//



#include "stdafx.h"
#include "Architecture.h"
#include "CodeMemList.h"
#include "Globals.h"
#include "DlxDoc.h"
#include "CodeMemDlg.h"
#include "codemem.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

extern CDlxDoc * MyDoc;
extern CCodeMemBar * CodeMemBar;
/////////////////////////////////////////////////////////////////////////////
// CCodeMemList

CCodeMemList::CCodeMemList()
{
}

CCodeMemList::~CCodeMemList()
{
}


BEGIN_MESSAGE_MAP(CCodeMemList, CListCtrl)
	//{{AFX_MSG_MAP(CCodeMemList)
	ON_NOTIFY_REFLECT(NM_DBLCLK, OnDblclk)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCodeMemList message handlers

void CCodeMemList::OnDblclk(NMHDR* pNMHDR, LRESULT* pResult) 
{
	
	DWORD dwPos = ::GetMessagePos();
	CPoint point((int) LOWORD(dwPos),(int)HIWORD(dwPos));
	ScreenToClient(&point);

	int i;
	if((i = HitTest(point))!=-1)
	{
	
	CCodeMemDlg dlg;
	dlg.m_Edit1 = i;
	dlg.m_Edit2 = MyDoc->m_CodeMemory[i];
	if(dlg.DoModal() == IDOK)
	{
		MyDoc->m_CodeMemory[dlg.m_Edit1] = dlg.m_Edit2;
		CodeMemBar->CodeMemUpdate(dlg.m_Edit1);
		//MyDoc->UpdateListBar(0);
	}
	}
	
	*pResult = 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -