worldcontainer.h

来自「这是一个关于Symbian Gird控件的程序」· C头文件 代码 · 共 53 行

H
53
字号
#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 + =
减小字号Ctrl + -
显示快捷键?