本文整理汇总了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);
}
示例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();
}
示例3: CreateWindowL
void HbNativeWindow::ConstructL()
{
CreateWindowL();
HbDeviceProfile current = HbDeviceProfile::current();
QSize logicalSize = current.logicalSize();
SetRect(TRect(0, 0, logicalSize.width(), logicalSize.height()));
ActivateL();
}
示例4: CreateWindowL
/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CProfileSettings::ConstructL()
{
CreateWindowL();
SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());
MakeListboxL();
ActivateL();
DrawNow();
}
示例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();
}
示例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();
}
示例7: CreateWindowL
void CCustomWrapAppControl::ConstructL()
{
CreateWindowL();
Window().SetShadowDisabled(ETrue);
CreateEdwinL();
iStandardCustomWrap = iEdwin->TextLayout()->CustomWrap();
iFocusControl=iEdwin;
SetExtentToWholeScreen();
ActivateL();
iFocusControl->SetFocus(ETrue);
}
示例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;}
}
示例9: CreateWindowL
void CPenUiBackgroundWnd::ConstructL(TInt aBmpHandle)
{
CreateWindowL(iWndGroup);
SetComponentsToInheritVisibility();
Window().SetRequiredDisplayMode( EColor16MA );
MakeVisible( EFalse );
CreateBitmapL(aBmpHandle);
TBool b = IsNonFocusing();
SetFocusing(EFalse);
}
示例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();
}
示例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 );
}
示例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();
}
示例13: CreateWindowL
/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CMainContainer::ConstructL(void)
{
CreateWindowL();
SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());
MakeProfileBoxL();
ActivateL();
SetMenuL();
DrawNow();
}
示例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);
}
示例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);
}