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

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

?? duallistmanager.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>
#include "attendanceDlg.h"

class CDualListManager 
//class CDualListManager : public CDialog
{
// Construction/Destruction
public:
	bool m_bIsCur;
	void GetChoosenItem(CAttendanceDlg* pDlg);
    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	bIsCur);
	BOOL ProcessCmdMsg(int nID, int nCode);

private:
    void    EnableButtons(bool bIsCur);
    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;
};

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久99精品国产.久久久久久| 国产农村妇女精品| 日本成人超碰在线观看| 欧美日韩午夜在线视频| 丝袜亚洲另类欧美| 日韩精品中文字幕一区| 国产美女一区二区| 国产精品国产自产拍在线| 91麻豆精品国产91久久久久久 | 精品99999| 国产一区二区在线观看免费| 国产欧美日韩精品在线| av在线不卡网| 亚洲成a人v欧美综合天堂下载| 欧美色综合网站| 秋霞电影网一区二区| 精品精品国产高清a毛片牛牛| 国产精品12区| 亚洲精品乱码久久久久久久久 | www.亚洲在线| 夜夜揉揉日日人人青青一国产精品 | 在线成人高清不卡| 久久国产精品99久久久久久老狼| 久久这里只有精品首页| 99精品欧美一区二区三区小说| 一区二区三区av电影| 日韩精品一区二区三区视频在线观看 | 精品国产区一区| av亚洲精华国产精华| 日韩主播视频在线| 国产女人18毛片水真多成人如厕| 欧美三级视频在线| 国产成人亚洲精品青草天美| 一区二区免费在线播放| 337p粉嫩大胆噜噜噜噜噜91av| 99这里只有精品| 国模少妇一区二区三区| 亚洲精品美国一| 国产日韩欧美不卡在线| 欧美精品日日鲁夜夜添| 不卡av免费在线观看| 奇米精品一区二区三区四区| 一区精品在线播放| 精品国产91亚洲一区二区三区婷婷 | 自拍偷自拍亚洲精品播放| 日韩精品在线一区| 欧美午夜电影在线播放| 成人深夜福利app| 精品一区中文字幕| 五月天精品一区二区三区| 激情综合一区二区三区| 艳妇臀荡乳欲伦亚洲一区| 国产精品少妇自拍| 久久综合九色综合久久久精品综合| 在线观看中文字幕不卡| 成人午夜又粗又硬又大| 国产在线视频一区二区三区| 午夜精彩视频在线观看不卡| 亚洲人被黑人高潮完整版| 国产日韩欧美激情| 精品毛片乱码1区2区3区| 欧美精品丝袜中出| 欧美亚洲一区二区在线观看| 99久久亚洲一区二区三区青草| 国产露脸91国语对白| 免费看黄色91| 免费视频一区二区| 日本伊人色综合网| 亚洲成av人影院| 亚洲国产综合在线| 亚洲宅男天堂在线观看无病毒| 国产精品久久久久久久浪潮网站| 久久精品一区二区| 国产欧美一区二区精品忘忧草| 精品国产一区二区三区久久久蜜月 | 国产精品丝袜黑色高跟| 国产欧美精品区一区二区三区 | 成人免费毛片aaaaa**| 国产伦精一区二区三区| 91麻豆精品国产| 欧美另类高清zo欧美| 欧美久久久一区| 欧美一级欧美一级在线播放| 欧美精品色综合| 日韩视频在线你懂得| 欧美一区二区三区公司| 欧美一级免费观看| 精品久久久久久无| 国产亚洲欧美色| 中文字幕精品三区| 日韩美女久久久| 亚洲宅男天堂在线观看无病毒| 午夜不卡av在线| 国产原创一区二区| 97se亚洲国产综合自在线| 在线免费不卡视频| 91精品在线麻豆| 国产午夜亚洲精品理论片色戒| 亚洲欧美自拍偷拍色图| 亚洲五码中文字幕| 久久99精品久久久| 不卡视频在线观看| 欧美在线高清视频| 欧美变态口味重另类| 国产精品久久久久影院亚瑟| 夜夜嗨av一区二区三区网页| 青娱乐精品视频| 成人国产免费视频| 欧美日韩一区二区在线观看 | 欧美日韩成人一区二区| 欧美大片拔萝卜| 中文字幕日本乱码精品影院| 亚洲h在线观看| 国产成人免费在线| 欧美丝袜自拍制服另类| 五月婷婷综合激情| 国产精品一级在线| 欧美三级视频在线观看| 久久久精品免费免费| 亚洲综合免费观看高清完整版| 麻豆视频一区二区| 99re在线视频这里只有精品| 日韩一区二区三区四区| 亚洲欧美另类综合偷拍| 蜜臀av亚洲一区中文字幕| 色婷婷精品久久二区二区蜜臀av | 成人免费va视频| 欧美久久久久久久久| 国产精品国产精品国产专区不片 | 一区二区三区中文字幕电影 | 99精品国产91久久久久久| 欧美一区二区三区男人的天堂| 亚洲国产精品传媒在线观看| 日本成人中文字幕在线视频| 99久久精品久久久久久清纯| 日韩精品一区二区三区老鸭窝| 亚洲精品菠萝久久久久久久| 国模无码大尺度一区二区三区| 欧美日韩精品电影| 亚洲蜜臀av乱码久久精品| 国产在线播放一区三区四| 欧美日韩国产乱码电影| 中文字幕在线不卡视频| 精品一区二区免费视频| 欧美人动与zoxxxx乱| 中文字幕一区二区视频| 国产综合久久久久久鬼色| 欧美三级欧美一级| 亚洲日本成人在线观看| 国产精选一区二区三区| 日韩一级片在线播放| 香蕉成人伊视频在线观看| 91视频在线观看| 中文字幕在线观看一区二区| 国产精品99久久久久久似苏梦涵| 日韩免费视频一区| 另类小说综合欧美亚洲| 欧美日韩三级在线| 亚洲丝袜美腿综合| 白白色 亚洲乱淫| 国产精品电影院| 国产成人啪午夜精品网站男同| 久久影音资源网| 日韩二区三区四区| 欧美一区二区三区在| 日本伊人色综合网| 欧美videossexotv100| 日本欧美肥老太交大片| 91精品国产综合久久福利| 视频一区二区三区中文字幕| 欧美丝袜自拍制服另类| 亚洲国产精品久久人人爱| 欧美视频完全免费看| 午夜精品久久久久影视| 欧美一区二区视频在线观看| 日本不卡视频在线观看| 精品国产网站在线观看| 国内外精品视频| 国产精品青草久久| 99久久99久久综合| 一区二区三区91| 欧美一区二区三区爱爱| 国产在线视频精品一区| 中文字幕欧美三区| 色国产综合视频| 日韩在线播放一区二区| 精品播放一区二区| 成人激情免费视频| 洋洋av久久久久久久一区| 欧美精品一二三四| 国产综合一区二区| 亚洲欧洲性图库| 欧美片网站yy| 国产精品996| 一区二区视频在线| 日韩视频一区二区三区| 国产91在线看| 图片区小说区区亚洲影院| 久久精品视频一区二区三区| 91女人视频在线观看|