当前位置: 首页>>代码示例>>C++>>正文


C++ ActivateL函数代码示例

本文整理汇总了C++中ActivateL函数的典型用法代码示例。如果您正苦于以下问题:C++ ActivateL函数的具体用法?C++ ActivateL怎么用?C++ ActivateL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ActivateL函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: CreateWindowL

void CTcContainer::ConstructL( const TRect& aRect )
{
    // Create a window for this application view
    CreateWindowL();

#ifdef __SERIES90_
    // Set skin configuration
    CCknSkinBase& skin = CknEnv().Skin();
    skin.SetAppViewType( ESkinAppViewNoCbaNoToolband );
#endif

    CreateLabelsL( aRect );

    // Set windows size and activate it
    SetRect( aRect );
    ActivateL();
}
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:17,代码来源:CTcContainer.cpp

示例2: CreateWindowL

void CMainMenuGridContainer::ConstructL(const TRect& aRect, 
                                        CMainMenuGridView* aView, 
                                        const TInt* aMbmImageIds,
                                        const TInt* aMbmMaskIds,
                                        const TInt* aMainMenuCommandIds)
{
   CreateWindowL();

   iView = aView;
   iMbmImageIds = aMbmImageIds;
   iMbmMaskIds = aMbmMaskIds;
   iMainMenuCommandIds = aMainMenuCommandIds;

   //Activate view
   SetRect(aRect);
   ActivateL();
}
开发者ID:VLjs,项目名称:Wayfinder-S60-Navigator,代码行数:17,代码来源:MainMenuGridContainer.cpp

示例3: CreateWindowL

void CTestContainer::ConstructL()
	{
	iColor = KRgbBlack;
	CreateWindowL();
	RWindow window = Window();
	window.SetTransparencyAlphaChannel();
	window.SetBackgroundColor(TRgb(150,150,150,150));
	iAnimationsArray=new(ELeave) CArrayPtrFlat<CAnimation>(KArrayGranularity);
	
	//Set the background of the container window to the default. 
	iBackgroundType = EBackgroundBlackRedGreenYellowStripes;
	ActivateL();

	//Construct a window that can be used in test cases.
	iCoveringWindowControl = new (ELeave) CTestWindowControl;	
	iCoveringWindowControl->ConstructL();
	}
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:17,代码来源:TBMPAnimStep.cpp

示例4: CALLSTACKITEM_N

// ---------------------------------------------------------
// CContextContactsContainer2::ConstructL(const TRect& aRect)
// EPOC two phased constructor
// ---------------------------------------------------------
//
void CContextContactsContainer2::ConstructL(const TRect& aRect)
{
	CALLSTACKITEM_N(_CL("CContextContactsContainer2"), _CL("ConstructL"));

	CreateWindowL();
	
	iLabel = new (ELeave) CEikLabel;
	iLabel->SetContainerWindowL( *this );
	iLabel->SetTextL( _L("Group View") );
	
	iToDoLabel = new (ELeave) CEikLabel;
	iToDoLabel->SetContainerWindowL( *this );
	iToDoLabel->SetTextL( _L("Feature not available") );
	
	SetRect(aRect);
	ActivateL();
}
开发者ID:flaithbheartaigh,项目名称:jaikuengine-mobile-client,代码行数:22,代码来源:ContextContactsContainer2.cpp

示例5: new

// member functions
void CSplashContainer::ConstructL(const TRect &aRect)
{
  iBitmap = new(ELeave)CFbsBitmap();

  CreateWindowL();

  SetRect(aRect);
  SetExtentToWholeScreen();

  TFileName bitmapFile(KDrawBitmapPath);
  User::LeaveIfError(CompleteWithAppPath(bitmapFile));

  iLogoBitmap = new(ELeave)CFbsBitmap();
  User::LeaveIfError(iLogoBitmap->Load(bitmapFile, EMbmMauruSplash));

  ActivateL();
}
开发者ID:Tumunu,项目名称:Mauru,代码行数:18,代码来源:SplashContainer.cpp

示例6: CreateWindowL

void CTstControl::ConstructL()
	{
	RWsSession& windowServerSession=iCoeEnv->WsSession();
	windowServerSession.SetAutoFlush(ETrue);
	CreateWindowL();
	EnableDragEvents();
	ClaimPointerGrab();
	RDrawableWindow& window=*DrawableWindow();
	window.SetOrdinalPosition(0);
	window.SetShadowHeight(3);
	CWsScreenDevice& screenDevice=*iCoeEnv->ScreenDevice();
	const TSize screenSize(screenDevice.SizeInPixels());
	SetExtent(TPoint(20, 20), TSize(screenSize.iWidth-40, screenSize.iHeight-40));
	iEikonEnv->AddDialogLikeControlToStackL(this);
	iAppServer=CTstAppServer::NewL();
	ActivateL();
	}
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:17,代码来源:TNNApp1.cpp

示例7: CreateWindowL

/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CYuccaSettings::ConstructL(TBool aReadOnly,TBool aHidden,TBool aSystem,TTime aTime)
{
    CreateWindowL();
	
	iFileDate 	= aTime;
	iReadOnly	= aReadOnly;
	iHidden		= aHidden;
	iSystem		= aSystem;
	iAttr 		= ETrue;
	
	SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());
	
	CreateListBoxL(iSettings);

	ActivateL();
	DrawNow();
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:21,代码来源:Yucca_Settings.cpp

示例8: CreateWindowL

void CSearchableListBoxContainer::ConstructL( const TRect& aRect, 
                                              MEikCommandObserver* aCommandObserver )
{
 
   CreateWindowL();

   iFocusControl = NULL;
   iCommandObserver = aCommandObserver;
   InitializeControlsL();
   iListBox->ItemDrawer()->ColumnData()->SetMarqueeParams(5, 6, 1000000, 200000);
   iListBox->ItemDrawer()->ColumnData()->EnableMarqueeL(ETrue);
   iListBox->CreateScrollBarFrameL(ETrue);
   iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOn,
                                                       CEikScrollBarFrame::EAuto);	
   SetRect( aRect );
   ActivateL();
}
开发者ID:VLjs,项目名称:Wayfinder-S60-Navigator,代码行数:17,代码来源:SearchableListBoxContainer.cpp

示例9: CreateWindowL

// -----------------------------------------------------------------------------
// CSupSplashScreenView::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CSupSplashScreenView::ConstructL( const TRect& aRect )
{
	// Create a window for this application view
	CreateWindowL();	

	// Creating splash screen control
	iSplashScreen = CSupSplashScreen::NewL();
	iSplashScreen->SetContainerWindowL(*this);

	iSplashScreen->ActivateL();

	// Set the windows size
	SetRect( aRect );

	// Activate the window, which makes it ready to be drawn
	ActivateL();
}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:22,代码来源:Supsplashscreenview.cpp

示例10: CreateWindowL

// CMainWinControl needs a ConstructL(), because it is a compound control
// (and a window-owning control).
void CMainWinControl::ConstructL(const TRect& rect)
	{
	// Make this a window-owning control.
	CreateWindowL();
	SetRect(rect);

	// Create its only component, a CSmileyContainer
	iContainer = new (ELeave) CSmileyContainer;
	iContainer->SetContainerWindowL(*this);
	TRect containerRect = Rect();
	containerRect.Shrink(10, 10);
	iContainer->ConstructL(containerRect);
	// Activate the main window control - this will also activate the 
	// CSmileyContainer and its components.
	ActivateL();
	DrawNow();
	}
开发者ID:huellif,项目名称:symbian-example,代码行数:19,代码来源:Custom.cpp

示例11: CreateWindowL

// ---------------------------------------------------------
// CFepSetupContainer::ConstructL(const TRect& aRect)
// EPOC two phased constructor
// ---------------------------------------------------------
//
void CFepSetupContainer::ConstructL(const TRect& aRect)
    {
    CreateWindowL();

    iLabel = new (ELeave) CEikLabel;
    iLabel->SetContainerWindowL( *this );
    iLabel->SetTextL( KSelectOptions );

	iFepSetting = CFepGenericGlobalSettings::NewL(*iEikonEnv,
					TFepOnOrOffKeyData(EKeyEnter, EModifierFunc|EModifierShift, EModifierFunc),
					TFepOnOrOffKeyData(EKeyEnter, EModifierFunc|EModifierShift, EModifierShift),
					EFalse);

#ifndef __SERIES60_3X__ // Series60 1.x/2.x API
	iFileNamesOfAvailableFeps = iEikonEnv->FileNamesOfAvailableFepsL();

	// Get the number of all Feps available in the system
	const TInt numberOfAvailableFeps = iFileNamesOfAvailableFeps->MdcaCount();

	// Get the name, including the path, of all the Feps in the system
	iNamesOfAvailableFeps = new(ELeave) CDesCArrayFlat(numberOfAvailableFeps+1);
	for(TInt i=0; i<numberOfAvailableFeps; i++)
		{
		// Get name of fep excluding path
		iNamesOfAvailableFeps->AppendL(TParsePtrC(iFileNamesOfAvailableFeps->MdcaPoint(i)).Name());
		}

#else // Series60 3.x API

	// Get available Fep Uids
	iEikonEnv->AvailableFepsL( iFepUids, NULL );
	iNamesOfAvailableFeps = new(ELeave) CDesCArrayFlat( iFepUids.Count() + 1 );
	// Get Fep names also
	iEikonEnv->AvailableFepsL( iFepUids, iNamesOfAvailableFeps );
	for (int i = 0; i < iFepUids.Count(); ++i) {
	  TBuf<50> buf;
	  buf.AppendNum(iFepUids[i].iUid, EHex);
	  buf.Append(' ');
	  buf.Append(iNamesOfAvailableFeps->MdcaPoint(i));
	  RDebug::Print(buf);
	}
#endif

    SetRect(aRect);
    ActivateL();
    }
开发者ID:mikaraento,项目名称:tts,代码行数:51,代码来源:FepSetupContainer.cpp

示例12: CreateWindowL

/*
-------------------------------------------------------------------------
This will be called when this file shandler is preraped to be used for, 
opening or constructing a file. The open/new etc. functions are called
strait after calling this function.
-------------------------------------------------------------------------
*/
void CYBrowserFileHandler1::ConstructL()
{
 	CreateWindowL();
 	
 	TFindFile AppFile(CCoeEnv::Static()->FsSession());
	if(KErrNone == AppFile.FindByDir(KMyResourceFileName, KNullDesC))
	{
 		TFileName resourceName(AppFile.File());
		BaflUtils::NearestLanguageFile(CEikonEnv::Static()->FsSession(), resourceName);
		iResId = CEikonEnv::Static()->AddResourceFileL(resourceName);
	}
	
	SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect()); 	
	
 	ActivateL();
	SetMenuL();
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:24,代码来源:YTools_filehand.cpp

示例13: CreateWindowL

/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CMainContainer::ConstructL()
{
	CreateWindowL();	

	iEcomHandler = CEcomHandler::NewL(this);

	iTimeOutTimer = CTimeOutTimer::NewL(CActive::EPriorityStandard,*this);
	
	GetSettingsL();
	
	SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());

	ActivateL();
	SetMenuL();
	DrawNow();

}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:21,代码来源:Main_Container.cpp

示例14: CreateWindowL

/**
  Second phase constructor for CLayoutTestAppView class.\n
  Creates a control's window. The created window is the child of the application's window group.\n
  Sets the view's extent i.e dimenstions.\n
  Instantiates Component controls each of CTest5Control class.\n
  Each component control is appended to a control array.\n
  The AppView object is added as the container control for all the component controls.\n
  The Appview is activated.\n
*/
void CLayoutTestAppView::ConstructL(CLayoutTest* aLayoutMan, const TRect& aRect)
    {
	CreateWindowL();
	SetRect(aRect);
	TRect ctrlRect(10, 10, 20, 20);
	for (TInt ctrlCount = 0; ctrlCount < KNumControls; ctrlCount++)
		{
		CTest5Control* testCtrl = CTest5Control::NewL(aLayoutMan, *this, ctrlRect);
		iCtrlArray.Append(testCtrl);
		testCtrl->SetContainerWindowL(*this);
		TPoint offset(20, 0);
		ctrlRect.iTl += offset;
		ctrlRect.iBr += offset;
		}	
	ActivateL();
	TRect rect(TPoint(0,0), aRect.iBr - TPoint(1,1));
 	SetRect(rect);
	}
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:27,代码来源:TCONE5STEP.CPP

示例15: CreateWindowL

void CVoIPListBox::ConstructL(const TRect& aRect, const CCoeControl* aParent,
        MEikCommandObserver* aCommandObserver)
    {
    CEikonEnv::Static()->ReadResource(KUnnamedStr, R_UNNAMED);

    if (aParent == NULL)
        {
        CreateWindowL();
        }
    else
        {
        SetContainerWindowL(*aParent);
        }
    iCommandObserver = aCommandObserver;
    InitializeControlsL();
    SetRect(aRect);
    ActivateL();
    }
开发者ID:bohwaz,项目名称:s60voip,代码行数:18,代码来源:VoIPListBox.cpp


注:本文中的ActivateL函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。