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

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

?? customlist.h

?? funambol windows mobile plugin source code, the source code is taken from the funambol site
?? H
字號:
/*
 * Copyright (C) 2003-2007 Funambol, Inc
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 * 02111-1307  USA
 */

#if !defined(AFX_CUSTOMLIST_H__3BCE6295_516B_4715_A125_E1A03E26DF40__INCLUDED_)
#define AFX_CUSTOMLIST_H__3BCE6295_516B_4715_A125_E1A03E26DF40__INCLUDED_

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

#define MAXITEMSTRING	256

#define ITEM_STATE_OK 1
#define ITEM_STATE_TO_SYNC 2

#define ANIM_TIMER_OFFSET 500
#define ANIM_ICON_DELAY 250

// unselected pane default bk color (white)
#define LIST_COLOR_BACKGROUND RGB(255,255,255)

//#define LIST_COLOR_SELECTED_ITEM RGB(220,220,255)

// selected pane default bk color
#define LIST_COLOR_SELECTED_ITEM RGB(153, 209, 252) // #99d1fc

// pane text color
#define LIST_COLOR_TEXT RGB(0,0,0)

// sync status text offset for SPH
#define OFFSET_SYNC_STATUS_TEXT_SPH 59

// sync status text offset for PPC
#define OFFSET_SYNC_STATUS_TEXT_PPC 60

#include <afxtempl.h>

/**
 * main window implemented as owner-draw CListCtrl (list) control where each item is a CExtItem,
 *
 */


/**
 * this is an item from the main list, it represents a sync source
 */
class CExtItem
{
protected:
    /**
     * item name as source name (i.e. 'Mail', 'Contacts',..)
     */
    CString itemName;

    /**
     * item status displayed in the right of the source name
     * eg. : '(Last sync failed)', '(Not synchronized)',...
     */
    CString itemStatus;

    /**
     * true if the item(source) is enabled
     */
    bool enabled;

    /**
     * sync source represented by this item (SOURCE_MAIL, SOURCE_BRIEFCASE, ..)
     */
    int id;

    /**
     * source state (ITEM_STATE_OK,  ITEM_STATE_TO_SYNC)
     */
    int itemState;

    /**
     * handle to the item's icon, changes if the item is disabled/enabled
     */
    HICON	hIcon;

    /**
     *  in which phase the anim icon is
     */
    int counterAnim;

    /**
     *  true if this source is currently syncing
     */
    bool bSyncing;

public:
    CExtItem(int _id,CString sItemName,HICON hIcon)
    {
        itemName = sItemName;
        hIcon = hIcon;
        itemState = ITEM_STATE_OK;
        enabled = true;
        id = _id;
        counterAnim = 0;
        bSyncing = false;
    }

    /**
     * accessors
     */
    CString getName() {return itemName;}
    void setName(CString s1) {itemName = s1; }

    CString getText() {return itemStatus;}
    void setText(CString s1) {itemStatus = s1; }

    int getItemState() const { return itemState; }
    void setItemState(int val) { itemState = val; }

    bool isEnabled() const { return enabled; }
    void setEnabled(bool val) { enabled = val; }

    int getId() const { return id; }
    void setId(int val) { id = val; }

    HICON getIcon() const { return hIcon; }
    void setIcon(HICON val) { hIcon = val; }

    int getCounterAnim() const { return counterAnim; }
    void setCounterAnim(int val) { counterAnim = val; }

    bool getIsItemSyncing() const { return bSyncing; }
    void setIsItemSyncing(bool val) { bSyncing = val; }
};
//////////////////////////////////////////////////////////////////////////


/**
 * extension of  CListCtrl UI control,
 * contains an array of CExtItem items (pItemList) with info about each source
 */
class CCustomList : public CListCtrl
{
public:
	CCustomList();

public:
    int  GetCurSelItem() const;
    BOOL SetCurSelItem(int nIndex);

    // sets the default icon for a source
    void resetSourceIcon(int id);

    CExtItem* getItem(int index);
protected:
    void RepaintSelectedItems();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCustomList)
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL


// Implementation
public:
    virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
    BOOL GetItemRect(int nItem,LPRECT lpRect, UINT nCode ) const;

	virtual ~CCustomList();

	// Generated message map functions
protected:
	//{{AFX_MSG(CCustomList)
   afx_msg void OnSetFocus(CWnd* pOldWnd);
   afx_msg void OnKillFocus(CWnd* pNewWnd);
   afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
   //afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
   afx_msg LRESULT OnSetFont(WPARAM wParam, LPARAM);

   /**
    * @return : the default width and height for a list item
    */
   afx_msg void MeasureItem ( LPMEASUREITEMSTRUCT lpMeasureItemStruct );

   //afx_msg void OnDrawItem(  int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);

   /**
    * called when a source is syncing and the sync arrows are spinning,
    * there is a timer for each source sync icon, the source id is (sourceId = nIDEvent - ANIM_TIMER_OFFSET;)
    */
   afx_msg void OnTimer( UINT_PTR nIDEvent );

   /**
    * when repainting by default only the items are redrawn,
    * so here we redraw also the empty space (if any) below the last item
    */
   afx_msg void OnPaint( );

   /**
    * do the same as for  OnPaint
    * @return : TRUE so we disable default processing of the message ( which would lead to excessive redrawing and flickering)
    */
   afx_msg BOOL OnEraseBkgnd(CDC* pDC );


	//}}AFX_MSG
 DECLARE_MESSAGE_MAP()

private:
    /**
     * inits the list by inserting a column
     */
    void Init();

    CBrush brushHollow;
    int nItemHeight, nItemWidth; // item sizes

    /**
     *  true if the items is locked, so the user cannot select any item
     */
    bool locked;

    /**
     * array of CExtItem, holds info about each source item
     */
    CArray<CExtItem *> pItemList;

public:
    CFont fontBold;
    /**
     *  adds a new item to the list, used only on application startup
     */
    void addItem(int id, CString lpszItemName,HICON hIcon);

    void setText(int id, CString text);
    CString getText(int id);
    void setIcon(int id, HICON hIcon);
    void setItemHeight(int height) { nItemHeight = height; }
    int getItemHeight(){return nItemHeight;}
    void setItemWidth(int width)  { nItemWidth = width; }

    /**
     * displays the sync arrows in the <id> source, and starts spinning it
     */
    void startAnim(int id);

    /**
     *  for the <id> source stops the animation, deletes the timer, restore the default icon
     */
    void stopAnim(int id);

    int getState(int id);
    void setState(int id, int state);
    void setStateToAll(int state, bool onlyEnabled = false);
    void enableItem(int id, bool enable);
    bool isEnabledItem(int id);

    /**
     * repaints the <id> source pane
     */
    void InvalidatePane(int id);

    /**
     * conversion between the source id and the index in the list  pItemList
     */
    int indexToId(int index);
    int idToIndex( int id );

    bool doesIdExist(int id);

    void setIsSyncing(int id, bool value);
    bool getIsSyncing(int id);

    /**
     * resets the panes to their default icons
     */
    void resetSourceIcons();

    void lockList(){locked = true;}
    void unlockList() {locked = false;}
    bool getIsLocked() const {return locked;}
};

/////////////////////////////////////////////////////////////////////////////

//{{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一区二区三区免费野_久草精品视频
国产在线看一区| 日本久久一区二区| jvid福利写真一区二区三区| 欧美午夜不卡在线观看免费| 日韩精品一区二区三区四区| 欧美韩国日本综合| 日本视频一区二区三区| 一本久久a久久精品亚洲| 亚洲精品一区二区三区99| 午夜影院久久久| 欧美在线一区二区| 亚洲免费色视频| 欧美日韩免费高清一区色橹橹| 亚洲综合色网站| 精品人伦一区二区色婷婷| 久久99日本精品| 欧美极品另类videosde| 色婷婷av一区二区三区软件| 天堂在线亚洲视频| 亚洲成av人片观看| 97久久精品人人澡人人爽| 国产一区二区福利视频| 欧美丰满美乳xxx高潮www| 亚洲精品美国一| 成人av在线看| 国产精品色眯眯| 国产一区二区三区黄视频| 日韩欧美综合一区| 日本大胆欧美人术艺术动态| 欧美日韩亚洲综合一区| 一区二区三区 在线观看视频 | 麻豆一区二区三| 欧美午夜精品理论片a级按摩| 亚洲桃色在线一区| 99国产精品99久久久久久| 国产精品伦一区二区三级视频| 国产一区视频在线看| 2023国产精品视频| 国产美女视频91| 亚洲色欲色欲www在线观看| 粗大黑人巨茎大战欧美成人| 中文字幕av资源一区| 懂色av一区二区夜夜嗨| 中文字幕av不卡| 99久久久久久| 亚洲午夜久久久久久久久久久| 色噜噜夜夜夜综合网| 亚洲一区二区三区四区五区黄| 欧美日韩卡一卡二| 日韩精品亚洲一区| 久久夜色精品国产欧美乱极品| 国产精品一区二区果冻传媒| 国产精品色一区二区三区| 91一区二区在线| 午夜私人影院久久久久| 日韩精品一区二区三区视频 | 久久久久久久久伊人| 国产精品1区2区| 中文字幕综合网| 欧美一区二区三区视频在线| 国产精品一二三四| 亚洲日本青草视频在线怡红院| 欧美性一二三区| 精品一区二区三区视频| 国产人成亚洲第一网站在线播放| 色综合久久99| 麻豆国产精品一区二区三区| 中文字幕欧美区| 欧美日免费三级在线| 激情av综合网| 亚洲在线视频一区| 国产亚洲精品免费| 欧美亚洲综合在线| 国产精品自拍一区| 一区二区欧美国产| 亚洲精品一区二区三区精华液| 色美美综合视频| 国产在线日韩欧美| 香蕉久久夜色精品国产使用方法| 久久综合久久综合亚洲| 在线看日本不卡| 国产999精品久久久久久绿帽| 午夜精品久久久久久| 国产色一区二区| 91精品国产福利在线观看| 99精品视频在线免费观看| 久久99精品久久久久久久久久久久| 成人欧美一区二区三区小说 | 3d成人动漫网站| 91玉足脚交白嫩脚丫在线播放| 美美哒免费高清在线观看视频一区二区 | 欧美不卡视频一区| 久久婷婷成人综合色| 在线免费观看日韩欧美| 成人av网在线| 精品一区二区三区免费观看| 亚洲成人777| 亚洲美女视频在线| 国产精品久久久久久久裸模| 日韩欧美亚洲另类制服综合在线| 欧美性色黄大片手机版| 972aa.com艺术欧美| 激情图片小说一区| 日本vs亚洲vs韩国一区三区| 亚洲三级免费电影| 亚洲精品福利视频网站| 亚洲日本一区二区| 亚洲欧美成aⅴ人在线观看 | 国产98色在线|日韩| 激情综合色综合久久| 日本最新不卡在线| 亚洲成av人片在www色猫咪| 亚洲一二三区视频在线观看| 亚洲欧美日韩电影| 亚洲乱码国产乱码精品精的特点| 国产精品久久影院| 日韩美女精品在线| 亚洲免费在线视频一区 二区| 亚洲人成7777| 亚洲区小说区图片区qvod| 日韩一区在线看| 亚洲自拍欧美精品| 亚洲电影第三页| 日本不卡一区二区三区 | 国产不卡视频一区二区三区| 国产伦精品一区二区三区免费 | 最新不卡av在线| 亚洲视频在线一区| 一区二区在线观看不卡| 亚洲成a人v欧美综合天堂| 日韩1区2区日韩1区2区| 国产一区二区三区四| 成人免费看视频| 欧美专区日韩专区| 日韩欧美不卡在线观看视频| 久久久久久9999| 国产精品国产a级| 亚洲成人av电影在线| 久久99久久精品| 日韩欧美一级二级三级| 久久综合九色综合欧美98| 中文字幕av一区二区三区高| 亚洲自拍偷拍欧美| 国内精品免费**视频| 91麻豆产精品久久久久久| 欧美日本韩国一区二区三区视频| 精品国产乱码久久久久久牛牛| 国产欧美1区2区3区| 一区二区视频在线| 久久狠狠亚洲综合| 成人99免费视频| 欧美喷水一区二区| 国产欧美一区二区精品仙草咪| 亚洲精品免费电影| 国产一区二区三区四区五区美女| 成人app网站| 日韩精品自拍偷拍| 日韩一区有码在线| 国内一区二区视频| 欧美三级视频在线播放| 亚洲国产高清aⅴ视频| 亚洲成av人**亚洲成av**| 国产风韵犹存在线视精品| 欧美在线观看视频一区二区三区| 精品国产在天天线2019| 最新国产精品久久精品| 国模一区二区三区白浆| 欧美偷拍一区二区| 国产欧美日韩卡一| 美女一区二区视频| 在线观看一区二区精品视频| 国产亚洲欧美在线| 日韩不卡免费视频| 91国产成人在线| 欧美国产一区在线| 老司机精品视频线观看86| 精品视频1区2区| 国产精品美女久久久久高潮| 另类专区欧美蜜桃臀第一页| 欧美在线视频日韩| 中文字幕在线视频一区| 久久99热国产| 日韩天堂在线观看| 天天操天天色综合| 91国内精品野花午夜精品| 国产精品久久久久久户外露出| 欧美日韩国产在线播放网站| 国产欧美精品区一区二区三区| 国模娜娜一区二区三区| 日韩午夜在线影院| 日韩精品三区四区| 欧美精品久久99久久在免费线| 亚洲精品成a人| 91老师片黄在线观看| 国产精品国产a| 91麻豆国产自产在线观看| 国产精品久久久久久久蜜臀| 99这里都是精品| 中文字幕一区二区三区av| 99精品视频在线免费观看|