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

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

?? intlstvw.cpp

?? 不錯的程序
?? CPP
字號:
// intlstvw.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 "intlstvw.h"

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

/////////////////////////////////////////////////////////////////////////////
// CIntListView

IMPLEMENT_DYNCREATE(CIntListView, CFormView)

CIntListView::CIntListView()
	: CFormView(CIntListView::IDD)
{
	//{{AFX_DATA_INIT(CIntListView)
	m_int = 0;
	//}}AFX_DATA_INIT
}

CIntListView::~CIntListView()
{
}

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

	// Copy all of the integers from the document's CList<int,int>
	// to the listbox.
	m_ctlList.ResetContent();
	CList<int,int>& intList = GetDocument()->m_intList;
	POSITION pos = intList.GetHeadPosition();
	while (pos != NULL)
	{
		int n = intList.GetNext(pos);
		AddIntToListBox(n);
	}
}


void CIntListView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CIntListView)
	DDX_Control(pDX, IDC_LIST, m_ctlList);
	DDX_Text(pDX, IDC_ELEMENT, m_int);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CIntListView, CFormView)
	//{{AFX_MSG_MAP(CIntListView)
	ON_BN_CLICKED(IDC_ADD, OnAdd)
	ON_BN_CLICKED(IDC_UPDATE, OnUpdate)
	ON_BN_CLICKED(IDC_REMOVE, OnRemove)
	ON_BN_CLICKED(IDC_REMOVE_ALL, OnRemoveAll)
	ON_LBN_SELCHANGE(IDC_LIST, OnSelChangeList)
	ON_BN_CLICKED(IDC_INSERT_BEFORE, OnInsertBefore)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()



/////////////////////////////////////////////////////////////////////////////
// CIntListView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CIntListView internal implementation

BOOL CIntListView::FindInt(int& nSel, POSITION& pos)
{
	nSel = m_ctlList.GetCurSel();
	if (nSel == LB_ERR)
	{
		AfxMessageBox(IDS_SELECT_INTEGER);
		return FALSE;
	}

	int nValue = (int)m_ctlList.GetItemData(nSel);

	// Find the integer in the integer list.
	pos = GetDocument()->m_intList.Find(nValue);

	// If the integer is in the listbox, it must also be in the integer list
	ASSERT(pos != NULL);

	return TRUE;
}

void CIntListView::AddIntToListBox(int n, int nSel)
{
	// Add new integer to the listbox.
	CString str;
	str.Format(_T("%i"),n);
	if (nSel == -1)
		nSel = m_ctlList.AddString(str);
	else
		m_ctlList.InsertString(nSel, str);

	// Save the integer as the listbox entry's "data item".
	m_ctlList.SetItemData(nSel, (DWORD)n);
}


/////////////////////////////////////////////////////////////////////////////
// CIntListView message handlers

void CIntListView::OnAdd()
{
	if (UpdateData() != TRUE)
		return;

	// Add new integer to the CList<int,int>
	GetDocument()->m_intList.AddTail(m_int);

	AddIntToListBox(m_int);
}

void CIntListView::OnInsertBefore()
{
	if (UpdateData() != TRUE)
		return;

	int nSel;
	POSITION pos;
	// Find the integer in both the CList<int,int> and the listbox.
	if (FindInt(nSel, pos) != TRUE)
		return;


	// Insert in front of the integer found in the CList<int,int>
	POSITION posTemp = GetDocument()->m_intList.InsertBefore(pos, m_int);

	// Insert new integer in the listbox
	AddIntToListBox(m_int, nSel);
}

void CIntListView::OnUpdate()
{
	if (UpdateData() != TRUE)
		return;

	int nSel;
	POSITION pos;
	// Find the integer in both the CList<int,int> and the listbox.
	if (FindInt(nSel, pos) != TRUE)
		return;

	// Replace the integer in the CList<int,int>.
	GetDocument()->m_intList.SetAt(pos, m_int);

	// Update the old integer in the listbox by removing
	// the old entry and adding a new entry.
	m_ctlList.DeleteString(nSel);
	AddIntToListBox(m_int, nSel);
}

void CIntListView::OnRemove()
{
	int nSel;
	POSITION pos;
	// Find the string in both the CList<int,int> and in the listbox.
	if (FindInt(nSel, pos) != TRUE)
		return;


	// Remove the integer from the CList<int,int>.
	GetDocument()->m_intList.RemoveAt(pos);

	// Remove the integer from the listbox.
	m_ctlList.DeleteString(nSel);
}

void CIntListView::OnRemoveAll()
{
	// Remove all of the integers from the CList<int,int>.
	GetDocument()->m_intList.RemoveAll();

	// Remove all of the integers from the listbox.
	m_ctlList.ResetContent();
}

void CIntListView::OnSelChangeList()
{
	// Update the edit control to reflect the new selection
	// in the listbox.
	m_int = (int)m_ctlList.GetItemData(m_ctlList.GetCurSel());
	UpdateData(FALSE);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区在线| 午夜精品一区二区三区三上悠亚| 日韩一区欧美一区| 欧美96一区二区免费视频| 91影视在线播放| 2020国产成人综合网| 亚洲一区二三区| 成人激情午夜影院| 精品国产伦一区二区三区观看方式| 亚洲综合一二区| 99国产精品视频免费观看| 国产亚洲欧美日韩日本| 美女视频黄频大全不卡视频在线播放| 成人国产精品免费观看| 久久久久久黄色| 美日韩一区二区| 欧美一区二区三区视频免费 | 91麻豆国产香蕉久久精品| 久久综合九色综合欧美就去吻| 午夜精品久久久久久久蜜桃app | 国模少妇一区二区三区| 制服丝袜亚洲精品中文字幕| 亚洲手机成人高清视频| 99久久久久久| 亚洲天堂精品在线观看| av电影在线观看不卡| 欧美激情一区在线| 懂色av中文一区二区三区 | 久久久久久久电影| 国产尤物一区二区| 久久久美女艺术照精彩视频福利播放| 全国精品久久少妇| 日韩一级完整毛片| 久久99精品久久久久久动态图| 91精品免费在线| 粉嫩一区二区三区性色av| 欧美www视频| 狠狠久久亚洲欧美| 日本一区二区三区四区| 成人激情文学综合网| 国产精品成人一区二区三区夜夜夜 | 国产色综合一区| 成人av网站免费| 一区二区三国产精华液| 欧美亚洲禁片免费| 日日嗨av一区二区三区四区| 91精品国产综合久久福利 | 精品久久国产字幕高潮| 国产在线精品视频| 国产精品美女一区二区| 97se亚洲国产综合自在线观| 亚洲国产精品一区二区尤物区| 欧美日韩国产精选| 国产乱码字幕精品高清av| 中文字幕精品一区二区三区精品| 91碰在线视频| 蜜芽一区二区三区| 欧美国产一区二区| 欧美日韩在线观看一区二区 | 亚洲乱码国产乱码精品精98午夜| 欧美做爰猛烈大尺度电影无法无天| 亚洲狠狠爱一区二区三区| 精品国产免费一区二区三区香蕉| 丁香婷婷综合网| 亚洲国产精品一区二区尤物区| 欧美电影免费观看高清完整版在| 成人爽a毛片一区二区免费| 亚洲激情在线激情| 久久久精品黄色| 欧美三级乱人伦电影| 国产一区二区导航在线播放| 亚洲欧美日本韩国| 精品乱码亚洲一区二区不卡| 91最新地址在线播放| 免费看精品久久片| 尤物视频一区二区| 久久精品欧美日韩| 欧美日韩精品一区二区在线播放| 国产高清久久久| 日日夜夜精品视频免费| 国产精品乱码一区二三区小蝌蚪| 欧美日本精品一区二区三区| 成人av先锋影音| 国精品**一区二区三区在线蜜桃| 亚洲在线视频网站| 国产精品午夜在线观看| 日韩欧美国产不卡| 欧美日韩高清在线| 91麻豆产精品久久久久久| 国内不卡的二区三区中文字幕| 亚洲国产另类av| 日韩毛片一二三区| 国产人成亚洲第一网站在线播放| 欧美一三区三区四区免费在线看| 色噜噜偷拍精品综合在线| 国产91在线看| 国产精品综合二区| 九九视频精品免费| 免播放器亚洲一区| 成人av电影观看| 国产不卡视频一区| 国产伦精品一区二区三区免费| 三级精品在线观看| 香蕉av福利精品导航| 亚洲欧美一区二区三区极速播放| 国产精品丝袜在线| 国产农村妇女精品| 久久精子c满五个校花| 2021国产精品久久精品| 欧美zozo另类异族| 精品福利av导航| 精品成人私密视频| 亚洲精品一区在线观看| 精品国精品自拍自在线| 日韩欧美一区二区免费| 欧美一区二区久久| 日韩欧美亚洲国产精品字幕久久久| 欧美日本不卡视频| 91麻豆精品国产91久久久更新时间 | 伊人色综合久久天天| 中文字幕日韩一区二区| 亚洲日本一区二区三区| 亚洲黄色小说网站| 亚洲成精国产精品女| 亚洲va韩国va欧美va精品| 日韩在线播放一区二区| 蜜臀av国产精品久久久久| 精品无人区卡一卡二卡三乱码免费卡| 久久成人羞羞网站| 国产精品中文欧美| 99riav久久精品riav| 在线免费精品视频| 欧美一区二区免费观在线| 日韩精品一区在线| 国产精品欧美久久久久无广告 | 亚洲国产成人av网| 日韩和欧美一区二区| 国内精品久久久久影院一蜜桃| 国产91综合一区在线观看| 日本韩国一区二区三区| 欧美一区二区三区性视频| 国产午夜三级一区二区三| 亚洲乱码国产乱码精品精的特点 | 欧美在线短视频| 日韩视频一区二区在线观看| 久久久久国产精品人| 亚洲日本电影在线| 日本不卡免费在线视频| 国产成人啪免费观看软件| 在线视频一区二区三| 欧美成人一区二区三区| 国产精品久久久一本精品| 亚洲成a人在线观看| 国产成人一区二区精品非洲| 欧美亚洲另类激情小说| 久久久久国产成人精品亚洲午夜| 国产精品久久久久久久岛一牛影视| 一级日本不卡的影视| 国产综合久久久久影院| 欧美亚州韩日在线看免费版国语版| 精品国产乱码久久久久久图片 | 一本久道中文字幕精品亚洲嫩| 69堂国产成人免费视频| 国产精品久久夜| 美女性感视频久久| 日本一二三不卡| 婷婷中文字幕一区三区| av在线一区二区三区| 精品国产91洋老外米糕| 亚瑟在线精品视频| 91视频免费观看| 久久婷婷久久一区二区三区| 亚洲va在线va天堂| 99久久国产综合精品色伊| 欧美大片一区二区| 亚洲一区二区高清| 成人h动漫精品一区二区| 精品乱人伦小说| 日本一道高清亚洲日美韩| 91国偷自产一区二区使用方法| 国产三级精品三级在线专区| 麻豆传媒一区二区三区| 欧美精品在线一区二区三区| 《视频一区视频二区| 高清在线观看日韩| 久久久午夜精品理论片中文字幕| 日韩精品电影在线| 欧美人伦禁忌dvd放荡欲情| 亚洲女性喷水在线观看一区| 成人av资源网站| 国产精品美女一区二区| 国产福利电影一区二区三区| www成人在线观看| 久久激情五月婷婷| 欧美不卡一二三| 久草热8精品视频在线观看| 日韩三级.com| 激情六月婷婷综合| 国产亚洲成av人在线观看导航| 久久成人免费网|