• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ ActivateL函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: CreateWindowL

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

	iTitleFont = AknLayoutUtils::FontFromId(EAknLogicalFontPrimarySmallFont);

	iAppUi = static_cast<CZXingBarcodeReaderAppUi*>(iEikonEnv->EikAppUi());

	// Set the windows size
	SetRect (aRect );

	//Start decoder timer.
	StartTimer();
	
	// Activate the window, which makes it ready to be drawn
	ActivateL ();
	}
开发者ID:Android9001,项目名称:zxing,代码行数:18,代码来源:ZXingBarcodeReaderAppView.cpp


示例17: CreateWindowL

// ----------------------------------------------------
// CNormalSettingContainer::ConstructL()
// Symbian OS default constructor can leave.
// ----------------------------------------------------
//
void CNormalSettingContainer::ConstructL(const TRect& aRect)
    {
    // Create a window for this application view
    CreateWindowL();

    TBuf<8> value;
    
    value.FillZ();
    iConfig = CConfiguration::NewL(KConfigFile);
	if (iConfig->Get(KCfgAttFrequency,value))
		{
		iEnumText = CCommonUtils::StrToInt(value);
		iOldEnumText = iEnumText;
		}
	else
		iOldEnumText = -1;
	
	value.FillZ();
	if (iConfig->Get(KCfgAttAutoStart,value))
		{
		iBinary = CCommonUtils::StrToInt(value);
		iOldBinary = iBinary;
		}
	else
		iOldBinary = -1;
    
    iItemList = new (ELeave) CAknSettingItemList;
    iItemList->SetMopParent(this);
    iItemList->ConstructFromResourceL(R_ENTRY_SETTINGS_LIST);

    LoadListL();

    iItemList->MakeVisible(ETrue);
    iItemList->SetRect(aRect);
    iItemList->ActivateL();
    iItemList->ListBox()->UpdateScrollBarsL();
    iItemList->DrawNow();

    // Set the windows size
    SetRect(aRect);

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


示例18: CreateWindowL

void CTestRectBackground::ConstructL()
    {
    CreateWindowL();    
	CTestRectGc::ConstructL(TPoint(20,20),TSize(600,200), KRgbBlack, KRgbYellow, CGraphicsContext::ESolidBrush);
	InitComponentArrayL();

	//Create a default control
    CreateComponentControlL(2, 7);
    	
	//Control to display the offscreen bitmap
    iControlImage = new (ELeave) CTestRectImageGc();
    iControlImage->CreateWindowL(this);
    iControlImage->DrawableWindow()->SetRequiredDisplayMode(EColor16MA); 
    iControlImage->ConstructL(TPoint(200,36),TSize(128,128), KRgbRed, KRgbGreen, CGraphicsContext::ESolidBrush); 
    iControlImage->ActivateL();

	//Second control to display blended overlay
    iControlImage2 = new (ELeave) CTestRectImageGc();
    iControlImage2->CreateWindowL(this); 
    iControlImage2->DrawableWindow()->SetRequiredDisplayMode(EColor16MA); 
    iControlImage2->ConstructL(TPoint(400,36),TSize(128,128), KRgbRed, KRgbGreen, CGraphicsContext::ESolidBrush); 
    iControlImage2->ActivateL();

	//Create an offscreen bitmap     
    iOffScreen = COffScreenBitmapGc::NewL(TSize(128,128));	
	
	//Create a second offscreen bitmap     
    iOffScreen2 = COffScreenBitmapGc::NewL(TSize(128,128));	
	
	//Set up the control images to display the two offscreen maps
	iControlImage->SetBitmap(iOffScreen->GetBitmap());	
	iControlImage2->SetBitmap(iOffScreen2->GetBitmap());	
    
    iBmpBackground = new (ELeave) CFbsBitmap();
    User::LeaveIfError(iBmpBackground->Load(_L("z:\\conetest\\city.mbm")));

	//Set up the Gc origin so that the offscreen bitmaps can be tiled in the same way as the screen drawn control
	TPoint ControlPos = iControl->PositionRelativeToScreen();
	iOffScreen->OffScreenGc()->SetWindowOrigin(ControlPos);
	iOffScreen2->OffScreenGc()->SetWindowOrigin(ControlPos);
	
    ActivateL();
    
    }
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:44,代码来源:TConeInvalidate.cpp


示例19: CreateWindowL

void CUnRegisterContainer::ConstructL(const TRect& aRect)
    {
    CreateWindowL();

    iLabel = new (ELeave) CEikLabel;
    iLabel->SetContainerWindowL( *this );
	iLabel->SetFont(iEikonEnv->LegendFont());
    iLabel->SetTextL(*(iEikonEnv->AllocReadResourceL(R_PURPLEACE_WEB)));

	CEikStatusPane* statusPane=iEikonEnv->AppUiFactory()->StatusPane();

	TBuf<10> message;
	message.Copy(_L(""));

	CAknNavigationControlContainer* aNaviPane = (CAknNavigationControlContainer *)statusPane->ControlL(TUid::Uid(EEikStatusPaneUidNavi));

	CAknNavigationDecorator* aNaviDecorator = aNaviPane->CreateMessageLabelL(message);

    aNaviPane->PushL(*aNaviDecorator);

	CAknContextPane* cp=(CAknContextPane *)statusPane->ControlL(TUid::Uid(EEikStatusPaneUidContext));

	TBuf<128> path;
	path = CRippleVaultAppUi::ApplicationDriveAndPath();
	path.Append(KRippleImageMbmFileName);

	CFbsBitmap* bitmap = iEikonEnv->CreateBitmapL(path, EMbmRippleimageRippleimage);
	CleanupStack::PushL(bitmap);
	CFbsBitmap* bitmapmask = iEikonEnv->CreateBitmapL(path, EMbmRippleimageRippleimagem);
	CleanupStack::PushL(bitmapmask);
	cp->SetPicture(bitmap, bitmapmask);
	CleanupStack::Pop(); // bitmapmask
	CleanupStack::Pop(); // bitmap
	DrawNow();

	CAknTitlePane* tp=(CAknTitlePane*)statusPane->ControlL(TUid::Uid(EEikStatusPaneUidTitle)); 
    tp->SetTextL(*(iEikonEnv->AllocReadResourceL(R_EXAMPLE_RIPPLE_PUBLISH))); // Set the text string.

	TRect Please(TPoint(0,44),TPoint(176,188));
    SetRect(Please);
    //SetRect(aRect);
    ActivateL();
    }
开发者ID:deepakprabhakara,项目名称:ripplevault,代码行数:43,代码来源:unregistercontainer.cpp


示例20: SetContainerWindowL

void CFontSizeTestControl::ConstructL(const CCoeControl* aParent)
    {
    User::LeaveIfError(iSemaphore.OpenGlobal(KSemaphore));
    
    iBidiText = TBidiText::NewL(KFullScreenSampleText, EMaximumTextLines, TBidiText::ELeftToRight);
    if (aParent)
        {
        SetContainerWindowL(*aParent);
        }
    else
        {
        CreateWindowL();        
        }
    SetRect(TRect(TPoint(0,0), CTWindow::GetDisplaySizeInPixels()));
    if (!aParent)
        {
        ActivateL();
        }
    }
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:19,代码来源:tfontmultiplesizes.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ ActivateOutput函数代码示例发布时间:2022-05-30
下一篇:
C++ Activate函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap