⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mylistboxappview.h

📁 MyListBox Symbian 3rd custom control.
💻 H
字号:
// --------------------------------------------------------------------------
// MyListBoxAppView.h
//
// Copyright 2005, Antony Pranata
// http://www.antonypranata.com
//
// A view class for custom list box example.
// --------------------------------------------------------------------------

#ifndef MYLISTBOXAPPVIEW_H
#define MYLISTBOXAPPVIEW_H

// INCLUDES
#include <coecntrl.h>
#include <eiklbo.h>  // MEikListBoxObserver
   
// FORWARD DECLARATIONS
class CCustomListBox;

// CLASS DECLARATION

/**
 *  CMyListBoxAppView container control class.
 */
class CMyListBoxAppView: public CCoeControl,
							public MEikListBoxObserver
	{
public: // constructors and destructor
	void ConstructL(const TRect& aRect);
	~CMyListBoxAppView();

public:
	CCustomListBox* ListBox()
	{ return iListBox; }

	TBool IsDoubleLine()
	{ return iIsDoubleLine; }

	void UpdateListBoxL(TBool aIsDoubleLine);

private: // from CCoeControl
	void SizeChanged();
	TInt CountComponentControls() const;
	CCoeControl* ComponentControl(TInt aIndex) const;
	void Draw(const TRect& aRect) const;
	virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
		TEventCode aType);

private: // from MEikListBoxObserver
	virtual void HandleListBoxEventL(CEikListBox* aListBox,
		TListBoxEvent aEventType);

private: // New functions
	void CreateListBoxL();
        
private: //data
	CCustomListBox* iListBox;
	TBool           iIsDoubleLine;
		// ETrue if the list box displays double line item.
		// EFalse if the list box displayes one line item.
	};

#endif // MYLISTBOXAPPVIEW_H

// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -