本文整理汇总了C++中DrawNow函数的典型用法代码示例。如果您正苦于以下问题:C++ DrawNow函数的具体用法?C++ DrawNow怎么用?C++ DrawNow使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DrawNow函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: switch
TKeyResponse CMyHelpContainer::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode /*aType*/)
{
TKeyResponse MyRet = EKeyWasNotConsumed;
switch (aKeyEvent.iCode)
{
case EKeyUpArrow:
if(iEditor)
{
iEditor->MoveCursorL(TCursorPosition::EFPageUp, EFalse);
iEditor->UpdateScrollBarsL();
iEditor->DrawNow();
MyRet = EKeyWasConsumed;
}
DrawNow();
break;
case EKeyDownArrow:
if(iEditor)
{
iEditor->MoveCursorL(TCursorPosition::EFPageDown,EFalse);
iEditor->UpdateScrollBarsL();
iEditor->DrawNow();
MyRet = EKeyWasConsumed;
}
DrawNow();
break;
default:
break;
}
return MyRet;
}
示例2: switch
void CMainContainer::HandleViewCommandL(TInt aCommand)
{
switch(aCommand)
{
case EAppHelpBack:
{
delete iMyHelpContainer;
iMyHelpContainer = NULL;
}
SetMenuL();
DrawNow();
break;
case EAppHelp:
{
delete iMyHelpContainer;
iMyHelpContainer = NULL;
iMyHelpContainer = CMyHelpContainer::NewL();
}
SetMenuL();
DrawNow();
break;
case ESwitchList:
{
SetGridOnL(EFalse);
}
SetMenuL();
DrawNow();
break;
case ESwitchGrid:
{
SetGridOnL(ETrue);
}
SetMenuL();
DrawNow();
break;
case EAppOpen:
if(!iYTasksContainer && iEcomHandler )
{
RPointerArray<CHandlerItem> Handlers = iEcomHandler->HandlerArray();
TInt CurrInd = HandleViewSelectedIndex();
if(CurrInd >= 0 && CurrInd < Handlers.Count())
{
if(Handlers[CurrInd])
{
iYTasksContainer = iEcomHandler->GetHandlerL(*Handlers[CurrInd],iCba);
}
}
}
SetMenuL();
DrawNow();
break;
default:
if(iYTasksContainer)
{
iYTasksContainer->HandleCommandL(aCommand);
}
break;
}
}
示例3: StateChanged
EXPORT_C void CEikButtonBase::Animate()
{
iButFlags|=KButtonPressedMask;
StateChanged();
DrawNow();
iCoeEnv->Flush(KAnimationDelayInMicroSeconds);
iButFlags&=(~KButtonPressedMask);
if (!ClickCompleted())
StateChanged();
DrawNow();
iCoeEnv->WsSession().Flush();
}
示例4: switch
void CYBrowserFileHandler1::HandleCommandL(TInt aCommand)
{
if(iDebugFile.SubSessionHandle())
{
iDebugFile.Write(_L8("cmd, "));
}
switch (aCommand)
{
case EPlugAppHelpBack:
{
delete iMyHelpContainer;
iMyHelpContainer = NULL;
}
SetMenuL();
DrawNow();
break;
case EPlugAppHelp:
{
delete iMyHelpContainer;
iMyHelpContainer = NULL;
iMyHelpContainer = CMyHelpContainer::NewL();
}
SetMenuL();
DrawNow();
break;
case EPlugAbout:
{
HBufC* Abbout = KMailAbbout().AllocLC();
TPtr Pointter(Abbout->Des());
CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL(Pointter);
dlg->PrepareLC(R_ABOUT_HEADING_PANE);
dlg->SetHeaderTextL(KMailAbboutName);
dlg->RunLD();
CleanupStack::PopAndDestroy(Abbout);
}
break;
case EBacktoYBrowser:
if(iFileHandlerUtils)
{
iFileHandlerUtils->HandleExitL(this,MYBrowserFileHandlerUtils::EChangesMade);
}
break;
default:
if(iMailBoxContainer)
{
iMailBoxContainer->HandleViewCommandL(aCommand);
}
break;
};
}
示例5: switch
// ----------------------------------------------------------------------------
// CAknExQueryContainer::OfferKeyEventL()
// Handles the key events.
// ----------------------------------------------------------------------------
//
TKeyResponse CAknExQueryContainer::OfferKeyEventL(
const TKeyEvent& aKeyEvent,
TEventCode aType )
{
if ( aType != EEventKey )
{
return EKeyWasNotConsumed;
}
switch ( aKeyEvent.iCode )
{
case EKeySpace:
if ( iDisplayDialog )
{
return EKeyWasNotConsumed;
}
iView->DisplayNextOutlineL();
DrawNow();
break;
default:
if ( !iDisplayDialog && iListBox )
{
return iListBox->OfferKeyEventL( aKeyEvent, aType );
}
else
{
return EKeyWasNotConsumed;
}
}
return EKeyWasConsumed;
}
示例6: DrawNow
// ----------------------------------------------------------------------------
// CAknExQueryContainer::SetTextToLabelL()
// Set Label text.
// ----------------------------------------------------------------------------
//
void CAknExQueryContainer::SetTextToLabelL( TInt aResourceId )
{
TBuf<KAknExQueryTextBufLength> messageString;
iCoeEnv->ReadResource( messageString, aResourceId );
iLabel->SetTextL( messageString );
DrawNow();
}
示例7: Hours
/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CYuccaSettings::SizeChanged()
{
/* if(iAttr)
{
TInt Hours(0);
TInt Minutes(0);
TInt Seconds(0);
GetValuesL(iReadOnly,iHidden,iSystem,iFileDate,Hours,Minutes,Seconds);
iFileDate.DateTime().SetHour(Hours);
iFileDate.DateTime().SetMinute(Minutes);
iFileDate.DateTime().SetSecond(Seconds);
}
else
{
GetValuesL(iSettings);
}
*/
if(iListBox)
{
iListBox->SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());
}
// CreateListBoxL(iSettings);
DrawNow();
}
示例8: SetTextL
EXPORT_C void CEikFloatingPointEditor::SetValueL(const TReal* aValue)
{
if (!aValue)
{
SetTextL(NULL);
return;
}
iValue=*aValue;
// !! Now check for validity?
TBuf<EAknMaxIntegerDigits> des;
TRealFormat format(iTextLimit);
format.iType|=KAllowThreeDigitExp;
des.Num(iValue,format);
AknTextUtils::ConvertDigitsTo(des, AknTextUtils::NumericEditorDigitType());
SetTextL(&des);
if ( !(iEdwinUserFlags&ENoAutoSelection) )
{
SetCursorPosL(des.Length(), ETrue);
}
else
{
SetCursorPosL(des.Length(), EFalse);
}
DrawNow();
}
示例9: CreateWindowL
/*
-----------------------------------------------------------------------------
----------------------------------------------------------------------------
*/
void CCommandSCSettings::ConstructL(void)
{
CreateWindowL();
SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());
ActivateL();
DrawNow();
}
示例10: ItemCount
void CTraceContainer::TimerExpired()
{
RExampleServerClient CrashClient;
CrashClient.Connect();
CrashClient.GetCPUMax(iMaxCpuCount);
TExampleItem ItemBuffer;
TFileName Bufferrr;
TInt ItemCount(0);
CrashClient.GetItemCount(ItemCount);
TInt GotCunt = iArray.Count();
for(TInt i = (GotCunt - 1); i < ItemCount; i++)
{
ItemBuffer.iIndex = i;
CrashClient.GetItemL(ItemBuffer);
AddItemListL(ItemBuffer);
}
if(iServerIsOn)
{
iTimeOutTimer->After(1000000);
}
CrashClient.Close();
DrawNow();
}
示例11: DrawNow
TKeyResponse CSliderControl::OfferKeyEventL(const TKeyEvent& aKeyEvent, enum TEventCode aType)
{
if (iSlider)
{iSlider->OfferKeyEventL(aKeyEvent,aType);}
return CCoeControl::OfferKeyEventL(aKeyEvent,aType);
DrawNow();
}
示例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 CCrashContainer::ConstructL(CEikButtonGroupContainer* aCba)
{
iCba = aCba;
CreateWindowL();
iServerIsOn = IsServerOn();
iBgContext = CAknsBasicBackgroundControlContext::NewL(KAknsIIDQsnBgAreaMain,TRect(0,0,1,1), ETrue);
iResId = -1;
TFindFile AppFile(CCoeEnv::Static()->FsSession());
if(KErrNone == AppFile.FindByDir(KCrashResourceFileName, KNullDesC))
{
TFileName resourceName(AppFile.File());
BaflUtils::NearestLanguageFile(CEikonEnv::Static()->FsSession(), resourceName);
iResId = CEikonEnv::Static()->AddResourceFileL(resourceName);
}
SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());
ActivateL();
SetMenuL();
DrawNow();
ChangeIconAndNameL();
}
示例13: CreateWindowL
/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CShowString::ConstructL(const TDesC& aBuffer)
{
CreateWindowL();
iMyFont = AknLayoutUtils::FontFromId(EAknLogicalFontSecondaryFont);
/* _LIT(KFontArial,"Serif");//Latin
TFontSpec MyeFontSpec (KFontArial, 12*10); // 12 points = 1/6 inch
MyeFontSpec.iTypeface.SetIsProportional(ETrue); // Arial is proportional
User::LeaveIfError(CEikonEnv::Static()->ScreenDevice()->GetNearestFontInTwips(iMyFont,MyeFontSpec));
*/
UpDateSizeL();
if(aBuffer.Length())
{
iString = aBuffer.AllocL();
}
else
{
iString = NULL;
}
ActivateL();
CEikonEnv::Static()->AddWindowShadow(this);
DrawNow();
}
示例14: switch
void CPhiImagePane::ScrollL(TUint aCode,TBool aFast)
{
if(!iLoaded) return;
TSize size=iBitmap->SizeInPixels();
TRect rect=Rect();
TInt step=aFast?EStepFast:EStep;
switch(aCode)
{
case EKeyLeftArrow:
iOffset.iX-=step;
break;
case EKeyRightArrow:
iOffset.iX+=step;
break;
case EKeyUpArrow:
iOffset.iY-=step;
break;
case EKeyDownArrow:
iOffset.iY+=step;
break;
}
if(iOffset.iX<0) iOffset.iX=0;
if(iOffset.iY<0) iOffset.iY=0;
if(iOffset.iX+rect.Width()>size.iWidth) iOffset.iX=size.iWidth-rect.Width();
if(iOffset.iY+rect.Height()>size.iHeight) iOffset.iY=size.iHeight-rect.Height();
if(rect.Width()>size.iWidth) iOffset.iX=0;
if(rect.Height()>size.iHeight) iOffset.iY=0;
DrawNow();
}
示例15: DrawNow
void CSmiley::FocusChanged(TDrawNow aDrawNow)
{
if (aDrawNow)
{
DrawNow();
}
}