uiacceltk/hitchcock/ServerStub/Proxy_src/AlfAppFwProxy.cpp
branchRCL_3
changeset 8 10534483575f
parent 0 15bf7259bb7c
equal deleted inserted replaced
7:433cbbb6a04b 8:10534483575f
   162                 GetRectForItem(id, dummy, skinRect);
   162                 GetRectForItem(id, dummy, skinRect);
   163 
   163 
   164                 if (!iBitmap)
   164                 if (!iBitmap)
   165                     {
   165                     {
   166                     iBitmap = new (ELeave) CFbsBitmap();
   166                     iBitmap = new (ELeave) CFbsBitmap();
   167                     User::LeaveIfError( iBitmap->Create(skinRect.Size(), EColor64K) ); // is 64k still valid?        
   167                     User::LeaveIfError( iBitmap->Create(skinRect.Size(), EColor16MAP) );         
   168                     }
   168                     }
   169                 
   169                 
   170                 User::LeaveIfError(iBitmap->Resize(skinRect.Size()));
   170                 User::LeaveIfError(iBitmap->Resize(skinRect.Size()));
   171                 
   171                 
   172                 if (!iSkinControlContext)
   172                 if (!iSkinControlContext)
   321         }    
   321         }    
   322 
   322 
   323     void UpdateWgListL()
   323     void UpdateWgListL()
   324         {
   324         {
   325         TInt wgId=0;
   325         TInt wgId=0;
   326         const TInt count=iWsSession.NumWindowGroups();
   326         TInt count=iWsSession.NumWindowGroups();
   327         if (count)
   327         if (count)
   328             {
   328             {
   329             TInt* ptr = iWgIdArray;    
   329             TInt* ptr = iWgIdArray;    
   330             Mem::FillZ(iWgIdArray,160);
   330             Mem::FillZ(iWgIdArray,160);
   331             CArrayFixFlat<TInt>* wgIdArray=new(ELeave) CArrayFixFlat<TInt>(count);
   331             CArrayFixFlat<TInt>* wgIdArray=new(ELeave) CArrayFixFlat<TInt>(count);
   332             CleanupStack::PushL(wgIdArray);
   332             CleanupStack::PushL(wgIdArray);
   333             CApaWindowGroupName* wgName=CApaWindowGroupName::NewL(iWsSession);
   333             CApaWindowGroupName* wgName=CApaWindowGroupName::NewL(iWsSession);
   334             CleanupStack::PushL(wgName);
   334             CleanupStack::PushL(wgName);
   335             User::LeaveIfError(iWsSession.WindowGroupList(wgIdArray)); // all groups
   335             User::LeaveIfError(iWsSession.WindowGroupList(wgIdArray)); // all groups
       
   336             count = wgIdArray->Count(); // count might have changed
       
   337             
   336             iWgEntriesWritten = 0;
   338             iWgEntriesWritten = 0;
   337             for (TInt ii=0; ii < count-1; ii++)
   339             for (TInt ii=0; ii < count-1; ii++)
   338                 { 
   340                 { 
   339                 wgId=(*wgIdArray)[ii];
   341                 wgId=(*wgIdArray)[ii];
   340                 wgName->ConstructFromWgIdL(wgId);
   342                 wgName->ConstructFromWgIdL(wgId);