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

📄 worldcontainer.h

📁 这是一个关于Symbian Gird控件的程序
💻 H
字号:
#ifndef __WORLDCONTAINER_H__
#define __WORLDCONTAINER_H__

// INCLUDES
#include <aknview.h>
#include <AknGridView.h>

//引入edit类
class CEikEdwin;
class CAknGrid;

class CWorldContainer : public CCoeControl
{
public:
	void LoadGraphicsL();		//导入图片
	void AddDataL();			//添加数据
	void ApplySelGridGraphicStyleL();	//设置风格

	//获得和设置edit中的内容
	void SetTextL(const TDesC& aBuf);
	void GetText(TDes& aBuf);
public: // Constructors and destructor
 	CWorldContainer();	
	virtual ~CWorldContainer();
	void ConstructL(const TRect& aRect);
	TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
private: // Functions from base classes
    void SizeChanged();
    TInt CountComponentControls() const;
    CCoeControl* ComponentControl( TInt aIndex ) const;
    void Draw( const TRect& aRect ) const;

private:
	//声明edit指针
	CEikEdwin*	iStatEdit;

	CAknGrid*		iGrid;
	TBool			iVerticalOrientation;	
	TBool			iLeftToRight;
	TBool			iTopToBottom;
	TInt			iNumOfColumns;
	TInt			iNumOfRows;
	TInt			iNumOfItems;			
	TSize			iSizeOfItems;			

	CAknGridView::TScrollingType iVerticalScrollingType; 
	CAknGridView::TScrollingType iHorizontalScrollingType; 

};

#endif      // __WorldCONTAINER_H__
// End of File

⌨️ 快捷键说明

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