symbian 9宫格问题求助
请教一下 九宫格如何写汉字.
MDesCArray* array = iGrid->Model()->ItemTextArray();
CDesCArray* cArray = ( CDesCArray* )array;
// The number of items in the grid.
for ( TInt loop = 0; loop < iNumOfItems; loop++ )
{
TBuf<32> sBuf;
sBuf.Format( _L("%d\Page%d"), loop,loop);
cArray->AppendL( sBuf );
}
// Inform list box that data was added.
iGrid->HandleItemAdditionL();
自定义了转换的方法可是用上去后就会出现AVKON 0的错误.
[解决办法]
sBuf.Format( _L("%d\Page%d"), loop,loop);
为什么P前面要一个"\"?