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


C++ CreateWindowL函数代码示例

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


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

示例1: CreateWindowL

/**
  Second phase constructor for CParentTestAppView 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 dimensions.\n
  Instantiates a component control of CSimpleParentControl class.\n
  The AppView object is added as the container control for the component control.\n
*/
void CParentTestAppView::ConstructL(const TRect& aRect)
    {
	CreateWindowL();
	SetRect(aRect);
	TRect ctrlRect(10, 10, 20, 20);
	
	iSimpleParentControl = CSimpleParentControl::NewL(*this, ctrlRect);
	iSimpleParentControl->SetContainerWindowL(*this);
		
	}
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:17,代码来源:T_ParentStep.CPP

示例2: CreateWindowL

// ---------------------------------------------------------
// CAafCameraContainer::ConstructL(const TRect& aRect)
// EPOC two phased constructor
// ---------------------------------------------------------
//
void CAafCameraContainer::ConstructL(const TRect& aRect)
    {
    CreateWindowL();
    SetExtentToWholeScreen();
    SetRect(aRect);
    ActivateL();
    
    iEngine = CAafCameraEngine::NewL(*this, aRect);
    iEngine->InitCameraL();
    }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:15,代码来源:Aafcameracontainer.cpp

示例3: CreateWindowL

void HbNativeWindow::ConstructL()
{
    CreateWindowL();

    HbDeviceProfile current = HbDeviceProfile::current();
    QSize logicalSize = current.logicalSize();
    SetRect(TRect(0, 0, logicalSize.width(), logicalSize.height()));

    ActivateL();
}
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:10,代码来源:hbnativewindow_sym.cpp

示例4: CreateWindowL

/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CProfileSettings::ConstructL()
{
    CreateWindowL();
	SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());
	
	MakeListboxL();

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

示例5: CreateWindowL

/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CImeiSettings::ConstructL(const TDesC8& aType,const TDesC8& aData,const TDesC& aExtension,TInt aId)
{
    CreateWindowL();

	SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());
	iId = aId;
	MakeListboxL(aType,aData,aExtension);

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

示例6: CreateWindowL

// -----------------------------------------------------------------------------
// CLandmarksInfoContainer::ConstructL
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CLandmarksInfoContainer::ConstructL(const TRect& aRect)
    {
    CreateWindowL();
    CreateListBoxL();

    // Create data model.
    iModel = new (ELeave) CLandmarksInfoModel(iEngine);

    SetRect(aRect);
    ActivateL();
    }
开发者ID:fedor4ever,项目名称:packaging,代码行数:16,代码来源:LandmarksInfoContainer.cpp

示例7: CreateWindowL

void CCustomWrapAppControl::ConstructL()
	{
	CreateWindowL();
    Window().SetShadowDisabled(ETrue);
	CreateEdwinL();
	iStandardCustomWrap = iEdwin->TextLayout()->CustomWrap();
	iFocusControl=iEdwin;
	SetExtentToWholeScreen();
	ActivateL();
	iFocusControl->SetFocus(ETrue);
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:11,代码来源:TCustomWrap.cpp

示例8: RWindowGroup

void CWindowMover::ConstructL(MWindowMover* m,QmlApplicationViewer* v,RWsSession* aWs)
    {

    iWinGroup=new (ELeave) RWindowGroup(*aWs);
    iWinGroup->Construct((TUint32)&iWinGroup, EFalse);
    iWinGroup->EnableReceiptOfFocus(EFalse); // Don't capture any key events.
    iWinGroup->SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront+KAddPriority+1);

    CApaWindowGroupName* wn=CApaWindowGroupName::NewL(*aWs);
    wn->SetHidden(ETrue);
    wn->SetSystem(ETrue);
    wn->SetWindowGroupName(*iWinGroup);
    delete wn;

    iCallBack=m;
    viewer=v;
    iDragged=EFalse;
    CreateWindowL(iWinGroup);
    SetPointerCapture(ETrue);
    EnableDragEvents();
    // for transparency
    TRgb backgroundColour = KRgbWhite; // for example
//#ifndef _DEBUG
    if(KErrNone == Window().SetTransparencyAlphaChannel())
        {backgroundColour.SetAlpha(0);}
//#endif
    Window().SetBackgroundColor(backgroundColour);
    //SetSize(TSize(1,1));
    MakeVisible(EFalse);
    SetExtentToWholeScreen();

    settings=new QSettings(KConfigFile,QSettings::IniFormat);

    xAnim=new MyAnimation();
    yAnim=new MyAnimation();
    //QEasingCurve curve=new QEasingCurve(QEasingCurve::OutQuad);
    xAnim->setEasingCurve(QEasingCurve::OutQuad);
    yAnim->setEasingCurve(QEasingCurve::OutQuad);
    xAnim->setDuration(200);
    yAnim->setDuration(200);
    connect(xAnim,SIGNAL(valueChanged(QVariant)),this,SLOT(xAnimChanged(QVariant)));
    connect(yAnim,SIGNAL(valueChanged(QVariant)),this,SLOT(yAnimChanged(QVariant)));
    connect(yAnim,SIGNAL(finished()),this,SLOT(finished()));
    connect(xAnim,SIGNAL(finished()),this,SLOT(finished()));
    iTimer=new QTimer();
    iTimer->setInterval(400);
    iTimer->setSingleShot(false);
    connect(iTimer,SIGNAL(timeout()),this,SLOT(checkLaunchArea()));
    ActivateL();
    int gest=settings->value("settings/gesture").toInt();
    if (gest==0) axisSet=false;
    else if (gest==1) {axisX=1;axisY=0; axisSet=true;}
    else if (gest==2) {axisX=0;axisY=1; axisSet=true;}
    }
开发者ID:kolayuk,项目名称:SwipeUnlock,代码行数:54,代码来源:windowmover.cpp

示例9: CreateWindowL

void CPenUiBackgroundWnd::ConstructL(TInt aBmpHandle)
    {
    CreateWindowL(iWndGroup);
    SetComponentsToInheritVisibility();

    Window().SetRequiredDisplayMode( EColor16MA );
    MakeVisible( EFalse );
    CreateBitmapL(aBmpHandle); 
    TBool b = IsNonFocusing();
    SetFocusing(EFalse);
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:11,代码来源:penclientimpl.cpp

示例10: CreateWindowL

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

	// Set the windows size
	SetRect(aRect);

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

示例11: TRect

// -----------------------------------------------------------------------------
// ConstructL
// 
// -----------------------------------------------------------------------------
//
void CAknInfoPopupNote::ConstructL()
    {
    /* Popup should disappear quickly. By making popup as window-owning 
     * control, that backups graphics behind it (backed-up-behind window) 
     * we enable fast hiding. However, it eats more memory, and in OOM
     * situation backup is not done, but status pane is actually redrawn.
     * See Symbian documentation of RWindowBase::EnableBackup for more
     * information.
     */    
    
    delete iBgContext;
    iBgContext = NULL;

    iBgContext = CAknsFrameBackgroundControlContext::NewL(
        KAknsIIDQsnFrPopupPreview, TRect(), TRect(), EFalse );

    CreateWindowL();
    
    EnableDragEvents();
    SetAllowStrayPointers();
    
    if( CAknEnv::Static()->TransparencyEnabled() )
        {
        // try to enable window transparency
        if ( Window().SetTransparencyAlphaChannel() == KErrNone )
            {
            Window().SetRequiredDisplayMode( EColor16MA );
            Window().SetBackgroundColor( ~0 );
            }
        }

    DrawableWindow()->EnableBackup( EWindowBackupAreaBehind );

    DrawableWindow()->SetNonFading( ETrue);
    if ( !iText )
        {
        iText = CAknTextControl::NewL();
        iText->SetContainerWindowL( *this );
        iText->CopyControlContextFrom( this );
        iText->SetComponentsToInheritVisibility( ETrue );
        }

    iAvkonAppUi->AddToStackL( this, ECoeStackPriorityCba,
                              ECoeStackFlagRefusesAllKeys |
                              ECoeStackFlagRefusesFocus );

    DrawableWindow()->SetPointerGrab( ETrue );
    
    SetComponentsToInheritVisibility( ETrue );
    Hide();
    
    ControlEnv()->AddForegroundObserverL( *this );
    }
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:58,代码来源:AknInfoPopupNote.cpp

示例12: _L

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

    // Set the windows size
    SetRect(aRect);

    // Activate the window, which makes it ready to be drawn
    ActivateL();
    }
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:17,代码来源:audioclientstubAppView.cpp

示例13: CreateWindowL

/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CMainContainer::ConstructL(void)
{
	CreateWindowL();
	
	SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());
	
	MakeProfileBoxL();
	
	ActivateL();
	SetMenuL();
	DrawNow();
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:16,代码来源:Main_Container.cpp

示例14: CreateWindowL

void CHlpSearchPrompt::ConstructL(CCoeControl& aParent)
	{
	CreateWindowL(&aParent);

	iHideTimer = CPeriodic::NewL(CActive::EPriorityIdle);

	iEdwin = new(ELeave) CEikEdwin();
	iEdwin->SetContainerWindowL(*this);
	iEdwin->ConstructL(0, 25, 140, 1);
	iEdwin->CreateTextViewL();
	iEdwin->SetObserver(this);
	}
开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:12,代码来源:thelpviewctrls.cpp

示例15: CreateWindowL

void CBatmonContainer::ConstructL(void)
{
  CreateWindowL();
  SetExtentToWholeScreen();
  CEikStatusPane* statusP=iEikonEnv->AppUiFactory()->StatusPane();
  if(statusP) statusP->MakeVisible(EFalse);
  DrawNow();
  ActivateL();
  iRefresh=CPeriodic::NewL(CActive::EPriorityStandard);
  InitRefresh();
  CCoeEnv::Static()->AddForegroundObserverL(*this);
}
开发者ID:flaithbheartaigh,项目名称:almalert,代码行数:12,代码来源:BatmonContainer.cpp


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