亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mapssvw.cpp

?? 不錯的程序
?? CPP
字號:
// mapssvw.cpp : implementation file
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1998 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.

#include "stdafx.h"
#include "collect.h"
#include "colledoc.h"
#include "mapssvw.h"

#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMapStringToStringView

IMPLEMENT_DYNCREATE(CMapStringToStringView, CFormView)

CMapStringToStringView::CMapStringToStringView()
	: CFormView(CMapStringToStringView::IDD)
{
	//{{AFX_DATA_INIT(CMapStringToStringView)
	m_strKey = "";
	m_strValue = "";
	//}}AFX_DATA_INIT
}

CMapStringToStringView::~CMapStringToStringView()
{
}

void CMapStringToStringView::OnInitialUpdate()
{
	CFormView::OnInitialUpdate();

	// Copy all of the assocations from the document's CMapStringToString
	// to the listbox.
	CString strKey, strValue;
	m_ctlList.ResetContent();
	CMapStringToString& map = GetDocument()->m_mapStringToString;
	POSITION pos = map.GetStartPosition();
	while (pos != NULL)
	{
		map.GetNextAssoc(pos, strKey, strValue);
		AddMapEntryToListBox(strKey, strValue);
	}
}

void CMapStringToStringView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMapStringToStringView)
	DDX_Control(pDX, IDC_LIST, m_ctlList);
	DDX_Text(pDX, IDC_KEY, m_strKey);
	DDX_Text(pDX, IDC_VALUE, m_strValue);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMapStringToStringView, CFormView)
	//{{AFX_MSG_MAP(CMapStringToStringView)
	ON_BN_CLICKED(IDC_ADD_OR_UPDATE, OnAddOrUpdate)
	ON_BN_CLICKED(IDC_FIND, OnFind)
	ON_BN_CLICKED(IDC_REMOVE, OnRemove)
	ON_BN_CLICKED(IDC_REMOVE_ALL, OnRemoveAll)
	ON_LBN_SELCHANGE(IDC_LIST, OnSelChangeList)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()



/////////////////////////////////////////////////////////////////////////////
// CMapStringToStringView diagnostics

#ifdef _DEBUG
void CMapStringToStringView::AssertValid() const
{
	CFormView::AssertValid();
}

void CMapStringToStringView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}

CCollectDoc* CMapStringToStringView::GetDocument() // non-debug version is inline
{
	return STATIC_DOWNCAST(CCollectDoc, m_pDocument);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMapStringToStringView internal implementation

int CMapStringToStringView::FindKeyInListBox(CString& strKey)
{
	CString strValue;
	if (GetDocument()->m_mapStringToString.Lookup(strKey, strValue) != TRUE)
		return LB_ERR;
	CString strListBoxEntry = strKey;
	strListBoxEntry += _T(" >> ");
	strListBoxEntry += strValue;
	return m_ctlList.FindString(-1, strListBoxEntry);
}

void CMapStringToStringView::AddMapEntryToListBox(CString& strKey, CString& strValue)
{
	CString str = strKey;
	str += _T(" >> ");
	str += strValue;
	m_ctlList.AddString(str);
}

/////////////////////////////////////////////////////////////////////////////
// CMapStringToStringView message handlers

void CMapStringToStringView::OnAddOrUpdate()
{
	if (UpdateData() != TRUE)
		return;

	// Add or replace entry in the listbox
	int nSel = FindKeyInListBox(m_strKey);
	if (nSel != LB_ERR)
		m_ctlList.DeleteString(nSel);
	AddMapEntryToListBox(m_strKey, m_strValue);

	// Add or update association in the CMapStringToString
	GetDocument()->m_mapStringToString[m_strKey] = m_strValue;
}

void CMapStringToStringView::OnFind()
{
	if (UpdateData() != TRUE)
		return;

	CString strValue;
	if (GetDocument()->m_mapStringToString.Lookup(m_strKey, strValue) != TRUE)
	{
		AfxMessageBox(IDS_KEY_NOT_FOUND);
		return;
	}

	m_strValue = strValue;
	UpdateData(FALSE);  // update the value found in the map lookup
}

void CMapStringToStringView::OnRemove()
{
	if (UpdateData() != TRUE)
		return;

	CString strValue;
	CMapStringToString& map = GetDocument()->m_mapStringToString;
	if (map.Lookup(m_strKey, strValue) != TRUE)
	{
		AfxMessageBox(IDS_KEY_NOT_FOUND);
		return;
	}

	if (strValue != m_strValue)
	{
		m_strValue = strValue;
		UpdateData(FALSE);
		AfxMessageBox(IDS_KEY_NOT_FOUND_CHOOSE_REMOVE_AGAIN);
		return;
	}

	// Remove assocation from the listbox
	int nSel = FindKeyInListBox(m_strKey);
	ASSERT(nSel != LB_ERR);
	m_ctlList.DeleteString(nSel);

	// Remove the association from the CMapStringToString
	map.RemoveKey(m_strKey);
}

void CMapStringToStringView::OnRemoveAll()
{
	GetDocument()->m_mapStringToString.RemoveAll();
	m_ctlList.ResetContent();
}

void CMapStringToStringView::OnSelChangeList()
{
	// Update the "key" field to reflect the new selection in the listbox.
	CString str;
	m_ctlList.GetText(m_ctlList.GetCurSel(), str);
	m_strKey.Empty();
	LPCTSTR lpsz = str;
	while (*lpsz != ' ' || *(lpsz+1) != '>' || *(lpsz+2) != '>')
	{
		m_strKey += *lpsz;
		lpsz++;
	}
	UpdateData(FALSE);

	// Now that the key field has been updated to reflect the listbox selection,
	// find the string in the map as though the user had hit the Find button.
	OnFind();
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区三区四区不卡| 免费在线成人网| 亚洲免费在线观看视频| 亚洲国产乱码最新视频| 成人黄色在线看| 91精品久久久久久久91蜜桃| 精品少妇一区二区| 亚洲国产精品麻豆| 国产成人精品网址| 777久久久精品| 一区二区三区中文字幕| 国产精品69毛片高清亚洲| 欧美午夜影院一区| 亚洲女同女同女同女同女同69| 蜜桃精品视频在线| 91黄色激情网站| 自拍av一区二区三区| 久久国产夜色精品鲁鲁99| 91在线播放网址| 国产精品二三区| 国产麻豆欧美日韩一区| 欧美日韩精品综合在线| 亚洲韩国一区二区三区| 国内欧美视频一区二区| 欧美三级午夜理伦三级中视频| 亚洲男人天堂一区| 成人爽a毛片一区二区免费| 欧美一卡2卡三卡4卡5免费| 亚洲黄一区二区三区| 国产福利91精品一区二区三区| 精品国产三级电影在线观看| 亚洲一区二区精品3399| 99re视频精品| 亚洲尤物视频在线| 色综合久久中文字幕综合网| 久久久久国产精品厨房| 国产黄色91视频| 精品国产乱码久久久久久1区2区| 亚洲精品综合在线| 91传媒视频在线播放| 国产精品高潮久久久久无| 激情另类小说区图片区视频区| 日韩精品一区二区三区视频播放| 午夜精品久久久久| 99久久亚洲一区二区三区青草| 国产精品免费视频网站| 粉嫩绯色av一区二区在线观看 | 成人网在线播放| 日韩女优av电影在线观看| 日韩精品电影在线| 国产精品综合在线视频| 欧美国产精品一区二区三区| 国产传媒日韩欧美成人| 国产精品二三区| 色哟哟精品一区| 亚洲日本在线a| 欧美二区三区的天堂| 日本欧美肥老太交大片| 欧美一区二区播放| 国产91精品在线观看| 欧美高清在线一区| 99久久99久久精品免费观看| 亚洲国产精品麻豆| 337p亚洲精品色噜噜| 久99久精品视频免费观看| 中文字幕av一区 二区| av不卡在线播放| 亚洲黄色片在线观看| 欧美不卡一区二区三区| 国产美女视频91| 国产精品国产自产拍高清av| 欧美日韩国产小视频在线观看| 手机精品视频在线观看| 日本一区二区高清| 欧美亚洲丝袜传媒另类| 久久精品国产99国产| 亚洲男同1069视频| 日韩欧美一级在线播放| 成人av网址在线| 亚洲美女在线一区| 91精品国产综合久久福利| av网站免费线看精品| 午夜视频久久久久久| 国产精品视频yy9299一区| 欧美日韩精品欧美日韩精品一综合| 蜜桃一区二区三区在线观看| 26uuu欧美| 欧美色成人综合| 国产成人午夜99999| 日韩高清欧美激情| 中文字幕五月欧美| 欧美一区二区三区日韩| 色综合亚洲欧洲| jizz一区二区| 韩国欧美国产1区| 亚洲一区二区三区自拍| 久久久久国产成人精品亚洲午夜| 在线免费观看日韩欧美| 国产乱子轮精品视频| 精品久久久三级丝袜| 欧美乱妇20p| 91丝袜呻吟高潮美腿白嫩在线观看| 国产欧美日韩不卡免费| 欧美一区二区三区系列电影| 一本久久a久久精品亚洲| 韩国精品一区二区| 日韩精品一级中文字幕精品视频免费观看 | 色8久久人人97超碰香蕉987| 国产成人av一区二区| 蜜桃av一区二区| 亚洲第一在线综合网站| 亚洲一区在线观看网站| 亚洲日本在线天堂| 国产精品日韩成人| 中文字幕电影一区| 精品国产露脸精彩对白| 在线电影一区二区三区| 91.成人天堂一区| 欧美日韩综合一区| 欧美性色黄大片手机版| 95精品视频在线| 不卡视频在线看| av在线一区二区三区| 国产精品12区| 99久久99久久精品免费看蜜桃| 国产福利一区二区三区在线视频| 午夜精品久久久久| 久久99国产精品尤物| 日本美女视频一区二区| 久88久久88久久久| 国内精品嫩模私拍在线| 国内成+人亚洲+欧美+综合在线| 免费日本视频一区| 亚洲va欧美va人人爽午夜| 亚洲第一福利视频在线| 亚洲国产日韩一级| 狠狠v欧美v日韩v亚洲ⅴ| 久久精品国产久精国产爱| 日韩国产欧美三级| 国产精品资源在线看| 国产黄人亚洲片| 色哟哟精品一区| 91精品国产手机| 91九色02白丝porn| 欧美这里有精品| 91精品国产91久久综合桃花| xnxx国产精品| 中文字幕佐山爱一区二区免费| 欧美顶级少妇做爰| 久久久久久99精品| 国产精品免费av| 亚洲国产成人精品视频| 美女视频网站黄色亚洲| 蜜桃视频第一区免费观看| 国产麻豆精品在线| 日韩欧美国产不卡| 日韩亚洲欧美成人一区| 精品少妇一区二区三区在线视频| 国产嫩草影院久久久久| 成人欧美一区二区三区| 捆绑调教美女网站视频一区| 国产精品正在播放| 色网站国产精品| 国产日韩亚洲欧美综合| 亚洲图片另类小说| 激情欧美一区二区| 91福利在线免费观看| 欧美一级国产精品| 136国产福利精品导航| 日韩高清一区在线| 波多野结衣一区二区三区 | 蜜桃一区二区三区四区| 精品亚洲国内自在自线福利| 91久久精品一区二区二区| 日韩欧美一级片| 午夜精品一区二区三区免费视频| 国产麻豆欧美日韩一区| 99久久精品国产一区二区三区 | 日韩伦理电影网| 久久精品国产精品亚洲精品| 色综合中文字幕国产 | 国产精品国产三级国产| 七七婷婷婷婷精品国产| 99这里都是精品| 欧美大片顶级少妇| 亚洲自拍偷拍麻豆| 粉嫩一区二区三区性色av| 久久美女高清视频| 日韩电影一区二区三区四区| 国产大片一区二区| 日韩精品一区二区三区视频 | 久久一区二区三区国产精品| 亚洲一区在线视频| 国产一区二区三区高清播放| 日韩欧美中文字幕公布| 亚洲综合久久av| 欧美日韩欧美一区二区| 国产精品成人免费| 国产一区二区三区| 中文文精品字幕一区二区|