StackCellActionSample Example for Visual C++ 5.0

void StackCellActionSample(CLEADRasterContainerViewer * pLEADContainerViewer) 
{
  TRY
  {
     pLEADContainerViewer->SetEnableMethodErrors(TRUE);
     if(!pLEADContainerViewer->StackAction().GetUse())
        pLEADContainerViewer->StackAction().ActivateAction(TRUE, 0);
     // Specify Offset cell's parameters.
     pLEADContainerViewer->StackAction().SetActiveSubCell(0);
     pLEADContainerViewer->StackAction().SetScrollValue(0);

     // Apply Offset on cell 0.
     pLEADContainerViewer->StackAction().SetAction(0, CONVIEW_ACTIONLEVEL_CELL);
  }
  CATCH_ALL(e)
  {
      e->ReportError();
  }
  END_CATCH_ALL
}