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

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

?? dduallistmanager.h

?? 這是一個經典畢業設計
?? H
字號:
///////////////////////////////////////////////////////////////////////////////
//
//  Filename:       DualListManager.h
//
//  AUTHOR     :    Copyright (C) Steve Aube, February 2000
//                  SteveAube@yahoo.com
//
//                  You can reuse and redistribute this code, provided this 
//                  header is kept as is.
//
//  Description:    This class is intended to handle moving item between two
//                  listboxes. One list represents the list of available items
//                  and the other represents the list of choosen items. This
//                  class is intended to be a member of CDialog, CFormView or
//                  CPropertyPage. All the parent class has to do is properly 
//                  initialize this class and call a couple of member functions
//                  and this class will take care of the following things:
//                  - If the "Add" button is pressed the selected item(s) are
//                    moved from the available list to the choosen list.
//                  - If the "Add All" button is pressed all of the items in
//                    are moved from the available list to the choosen list.
//                  - If the "Remove" button is pressed the selected item(s) 
//                    are moved from the choosen list to the available list.
//                  - If the "Remove All" button is pressed all of the items in
//                    are moved from the choosen list to the available list.
//                  - If the "Move Up" button is pressed the selected item(s)
//                    in the choosen list are moved up in the list by one.
//                    This button can be pressed repeatedly until all of the 
//                    selected items have reached the top of the list. When
//                    that occurs the button is disabled.
//                  - If the "Move Down" button is pressed the selected item(s)
//                    in the choosen list are moved down in the list by one.
//                  - Allows double clicking on an item to move it to the
//                    opposite list.
//                  - When item(s) are moved from one list to another the 
//                    item that was moved is selected in the list it was moved
//                    to. The list that had the item removed selects the item
//                    that is at the location of the first item that was moved.
//                    If the item at the bottom of the list is moved the item
//                    immediately above it is selected. If the last item in 
//                    the list is removed there is no selection.
//                  - Enabling/disabling of buttons - when items are moved 
//                    between lists and up and down in the choosen list the 
//                    availability of buttons changes. For instance if an item
//                    is moved to the top of the choosen list the "Move Up" 
//                    button doesn't make sense. When this occurs the "Move Up"
//                    button is automatically disabled.
//                  - Keyboard support - disabling a button that has the focus
//                    causes problems for keyboard users. This code checks to 
//                    see if a button has the focus before it disables it. If
//                    it does the focus is forwarded to the next avaiabled 
//                    control.
//                  
//                  How to use this class:
//                  - Add a member variable of this class type to the dialog
//                    box, property page or form view where you want to use it.
//                  - From the initialization method (OnInitDialog() for a 
//                    dialog box and a property page and OnInitialUpdate() for
//                    a view) do the following things in this order:
//                    - Add the items to the available and choosen lists with
//                      the calls AddItemToAvailableList(...) and 
//                      AddItemToChoosenList(...). The first parameter is the
//                      name of the item and the second parameter is a unique
//                      identifier for the item.
//                    - Call InitializeControls(...) with a pointer the parent
//                      window and the IDs of all of the controls.
//                  - Override OnCmdMsg(...) 
//                  
//                  Notes:
//                  - If you don't need certain features (like the ability to
//                    move an item up or down in the choosen list) simply
//                    provide a NULL value for that id. The rest of the class
//                    will continue work correctly. The IDs for the two lists
//                    are required since a dual list manager doesn't make sense
//                    unless it has two lists to work with.
//                  - This code will work with single, multiple and extended
//                    listboxes.
//                  - The order of the controls doesn't matter. You can put 
//                    the choosen list on the left, right, top or bottom of the
//                    selected list. Just make sure you supply the control IDs
//                    in the right order.
//                  
//                  Implementation details:
//                  This class keeps track of the items in both listboxes in
//                  internal CArrays. The names associated with the items
//                  are tracked in a CMap and the item data value is used as
//                  the key. Keeping these separate lists simplfies moving
//                  items and keeping track of selection state.
//
////////////////////////////////////////////////////////////////////////////////

#ifndef __DualListManager_H__
#define __DualListManager_H__

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <afxtempl.h>

class CDualListManager 
//class CDualListManager : public CDialog
{
// Construction/Destruction
public:
    CDualListManager(void);
    ~CDualListManager(void);

    void AddItemToAvailableList(LPCTSTR lpszItem, long lItemData);
    void AddItemToChoosenList(LPCTSTR lpszItem, long lItemData);
	void InitializeControls(CWnd * pWndParent,
                            int    iIDAvailableList,
                            int    iIDChoosenList,
                            int    iIDAddButton,
                            int    iIDAddAllButton,
                            int    iIDRemoveButton,
                            int    iIDRemoveAllButton,
                            int    iIDMoveUpButton,
                            int    iIDMoveDownButton);
	BOOL ProcessCmdMsg(int nID, int nCode);

private:
    void    EnableButtons(void);
    void    EnableWindow(int iIDControl, BOOL bEnable);
    void    FillListboxes(CArray<long, long> * pSelectedArray = NULL, BOOL bRemoving = FALSE);
    void    MoveAll(CListBox & rLBFrom, CListBox & rLBTo, CArray<long, long> & rArrayFrom, CArray<long, long> & rArrayTo);
    void    MoveUpOrDown(BOOL bMovingUp);
    void    MoveSelected(CListBox & rLBFrom, CArray<long, long> & rArrayFrom, CArray<long, long> & rArrayTo, BOOL bRemoving);
    void    SelectLBItem(CListBox & rListBox, int iItem);

private:
    CMap  <long, long, CString, CString> m_KeyMap;
    CArray<long, long>                   m_ArrayChoosen;
    CArray<long, long>                   m_ArrayAvailable;
	CListBox	m_ctrlAvailableList;
	CListBox	m_ctrlChoosenList;
	int         m_iIDAvailableList;
	int         m_iIDChoosenList;
	int         m_iIDAddButton;
	int         m_iIDAddAllButton;
	int         m_iIDRemoveButton;
	int         m_iIDRemoveAllButton;
	int         m_iIDMoveUpButton;
	int         m_iIDMoveDownButton;
    CWnd  *     m_pWndParent;
	BOOL        m_bAvailableListSingleSelType;
	BOOL        m_bChoosenListSingleSelType;
//};

/////////////////////////////////////////////////////////////////////////////
// CDualListManager dialog

class CDualListDialog : public CDialog
{
// Construction
public:
	CDualListDialog(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDualListManager)
	enum { IDD = IDD_DIALOG_DUAL_LIST_DEMO };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDualListManager)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDualListManager)
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
    CDualListManager  m_DualListManager;

};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲三级视频在线观看| 国产东北露脸精品视频| 日韩一级黄色大片| 国产精品羞羞答答xxdd| 亚洲久草在线视频| 精品国产91乱码一区二区三区 | 日本特黄久久久高潮| 久久蜜桃av一区二区天堂 | 欧洲一区二区av| 亚洲人成在线播放网站岛国| 91精品久久久久久蜜臀| 97久久超碰国产精品| 中文字幕国产精品一区二区| 色www精品视频在线观看| 奇米精品一区二区三区在线观看 | 日韩电影在线免费观看| 亚洲成精国产精品女| 成人免费视频一区| 日韩不卡手机在线v区| 1000精品久久久久久久久| 久久综合狠狠综合久久激情| 日韩一区和二区| 欧美福利电影网| 宅男在线国产精品| 欧美一区二区三区四区五区| 欧美影院一区二区| 在线观看区一区二| 91麻豆福利精品推荐| 91色视频在线| 欧美亚洲愉拍一区二区| 欧美日韩国产中文| 欧美男人的天堂一二区| 91麻豆精品91久久久久久清纯 | 欧美性生活久久| 欧美性大战久久| 欧美一级片免费看| 久久精品网站免费观看| 亚洲欧美在线视频| 一区二区三区在线免费观看| 午夜不卡av免费| 国产一区久久久| 91国偷自产一区二区使用方法| 国产精品中文字幕欧美| 日本美女一区二区| 欧美在线视频全部完| 欧美精品tushy高清| 久久久久久久av麻豆果冻| 最新日韩在线视频| 紧缚奴在线一区二区三区| 日韩精品电影在线| 亚洲福利一二三区| 日韩中文字幕亚洲一区二区va在线| 亚洲激情自拍视频| 精品在线视频一区| 色婷婷亚洲一区二区三区| 欧美挠脚心视频网站| 欧美国产一区二区在线观看| 一二三四社区欧美黄| 国产一区二区免费在线| 99精品视频在线播放观看| 欧美裸体bbwbbwbbw| 国产精品久久久久久久蜜臀| 亚洲国产精品久久久久秋霞影院 | 亚洲一二三四在线观看| av不卡在线播放| 国产精品人人做人人爽人人添| 国产一区日韩二区欧美三区| 精品国产露脸精彩对白 | 亚洲线精品一区二区三区| 国产91丝袜在线播放九色| 精品国产乱码久久久久久牛牛| 国产精品久久久久精k8| 蜜臀av性久久久久蜜臀aⅴ四虎 | 久久精品欧美日韩精品| 国产精品原创巨作av| 久久这里只有精品6| 国产在线观看一区二区| 国产精品视频免费看| k8久久久一区二区三区| 国产精品国产三级国产aⅴ中文 | 国产日韩欧美电影| 岛国精品在线观看| 国产精品美女www爽爽爽| 粉嫩一区二区三区在线看| 国产精品久久久久久久裸模| 色婷婷av一区二区三区大白胸| 天天综合色天天| 国产亚洲短视频| 91一区二区三区在线观看| 1024成人网| 日韩精品一区在线观看| 国产精品18久久久久久vr| 亚洲你懂的在线视频| 在线观看亚洲一区| 国产精品一卡二卡在线观看| 亚洲日本va午夜在线电影| 日韩精品中午字幕| 成人免费av网站| 亚洲国产欧美在线| 国产精品少妇自拍| 欧美一区二区三区成人| 欧美性大战xxxxx久久久| 日本电影欧美片| 色综合一区二区| 在线亚洲精品福利网址导航| av网站免费线看精品| 成人免费观看男女羞羞视频| 风流少妇一区二区| 国产suv一区二区三区88区| 国产自产v一区二区三区c| 国产一区二区三区免费| 免费观看一级特黄欧美大片| 日韩国产精品91| 国产精品一二三四区| 国产aⅴ综合色| 国产酒店精品激情| 91影院在线免费观看| 91在线观看污| 欧美日韩一区视频| 91精品国产一区二区三区香蕉| 欧美一区二区在线免费播放| 欧美精品久久一区二区三区| 国产精品二区一区二区aⅴ污介绍| 亚洲欧洲日韩在线| 五月天激情综合网| 成人av高清在线| 欧美精品一区二区三区在线| 国产精品白丝在线| 午夜精品福利一区二区蜜股av| 麻豆91免费观看| 一本色道a无线码一区v| 国产色91在线| 蜜桃视频第一区免费观看| 成人黄色小视频在线观看| 精品视频1区2区3区| 亚洲视频1区2区| 国产久卡久卡久卡久卡视频精品| 99久久伊人久久99| 久久久久久久国产精品影院| 午夜日韩在线观看| 色婷婷综合久久久久中文 | 国产成人av一区二区三区在线 | 蜜桃视频一区二区| 欧美日韩色一区| 亚洲欧美综合色| 在线国产亚洲欧美| 中文子幕无线码一区tr | 国产乱子伦一区二区三区国色天香| 91福利区一区二区三区| 一区二区三区小说| 日本国产一区二区| 日韩电影在线观看网站| 色婷婷激情综合| 一区二区三区日韩精品视频| 91麻豆自制传媒国产之光| 国产精品久久久一本精品| 99久久伊人网影院| 亚洲制服丝袜在线| 精品视频在线免费看| 免费看黄色91| 久久夜色精品国产噜噜av| 国内精品嫩模私拍在线| 国产日韩欧美高清| 欧美日韩精品专区| 国产1区2区3区精品美女| 国产精品毛片久久久久久| 国产成人自拍网| 亚洲女性喷水在线观看一区| 欧美日韩免费一区二区三区| 青青草伊人久久| 亚洲天堂福利av| 久久综合成人精品亚洲另类欧美 | 欧美一区二区黄色| 成人18视频在线播放| 免费一级片91| 亚洲一区二区三区激情| 国产亚洲欧美日韩俺去了| 欧美视频精品在线| 国产精品66部| 日韩电影在线观看一区| 亚洲一二三区视频在线观看| 国产精品国产a级| 国产精品福利一区| 亚洲视频一区在线观看| 久久精品人人做人人爽97| 国产欧美一区二区精品性色 | 国产精品99久久久久久有的能看 | 在线免费亚洲电影| 亚洲一区影音先锋| 国产精品免费看片| 偷窥少妇高潮呻吟av久久免费| 免费观看成人av| 色综合中文字幕国产 | 欧美色图片你懂的| 欧美成人精精品一区二区频| 久久先锋影音av鲁色资源网| 国产欧美日韩在线视频| 亚洲精品免费一二三区| 亚洲123区在线观看| 国产一区在线看|