javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtdecorations.cpp
branchRCL_3
changeset 19 71c436fe3ce0
parent 14 04becd199f91
equal deleted inserted replaced
18:9ac0a0a7da70 19:71c436fe3ce0
   618 
   618 
   619 // ---------------------------------------------------------------------------
   619 // ---------------------------------------------------------------------------
   620 // CSwtDecorations::SetMaximized
   620 // CSwtDecorations::SetMaximized
   621 // ---------------------------------------------------------------------------
   621 // ---------------------------------------------------------------------------
   622 //
   622 //
   623 void CSwtDecorations::SetMaximized(TBool aMaximized)
   623 void CSwtDecorations::SetMaximized(TBool /*aMaximized*/)
   624 {
   624 {
   625     ASSERT(aMaximized != iIsMaximized);
   625     // Nothing to do, unsupported feature
   626 
       
   627     if (aMaximized)
       
   628     {
       
   629         // Set bounds so as to cover the parent's client area
       
   630         iNormalBounds = GetBounds();
       
   631         TRect newBounds(iParent->Control()->ClientRect().Size());
       
   632         SetBounds(newBounds);
       
   633     }
       
   634     else
       
   635     {
       
   636         SetBounds(iNormalBounds);
       
   637     }
       
   638 
       
   639     iIsMaximized = aMaximized;
       
   640 }
   626 }
   641 
   627 
   642 // ---------------------------------------------------------------------------
   628 // ---------------------------------------------------------------------------
   643 // CSwtDecorations::GetMaximized
   629 // CSwtDecorations::GetMaximized
   644 // ---------------------------------------------------------------------------
   630 // ---------------------------------------------------------------------------