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


C++ DrawNow函数代码示例

本文整理汇总了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;
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:33,代码来源:Help_Container.cpp

示例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;
	}	
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:60,代码来源:Main_Container.cpp

示例3: StateChanged

EXPORT_C void CEikButtonBase::Animate()
    {
    iButFlags|=KButtonPressedMask;
    StateChanged();
    DrawNow();
    iCoeEnv->Flush(KAnimationDelayInMicroSeconds);
    iButFlags&=(~KButtonPressedMask);
    if (!ClickCompleted())
        StateChanged();
    DrawNow();
	iCoeEnv->WsSession().Flush();
    }
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:12,代码来源:EIKBUTB.CPP

示例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;
    };
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:52,代码来源:YToolsMailFolders.cpp

示例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;
    }
开发者ID:fedor4ever,项目名称:packaging,代码行数:35,代码来源:aknexquerycontainer.cpp

示例6: DrawNow

// ----------------------------------------------------------------------------
// CAknExQueryContainer::SetTextToLabelL()
// Set Label text.
// ----------------------------------------------------------------------------
//
void CAknExQueryContainer::SetTextToLabelL( TInt aResourceId )
    {
    TBuf<KAknExQueryTextBufLength> messageString;
    iCoeEnv->ReadResource( messageString, aResourceId );
    iLabel->SetTextL( messageString );
    DrawNow();
    }
开发者ID:fedor4ever,项目名称:packaging,代码行数:12,代码来源:aknexquerycontainer.cpp

示例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();
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:32,代码来源:Yucca_Settings.cpp

示例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();
	}
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:28,代码来源:EIKFPNE.CPP

示例9: CreateWindowL

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

示例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();
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:30,代码来源:MainContainer.cpp

示例11: DrawNow

TKeyResponse CSliderControl::OfferKeyEventL(const TKeyEvent& aKeyEvent, enum TEventCode aType)
	{
	if (iSlider)
		{iSlider->OfferKeyEventL(aKeyEvent,aType);}
	return CCoeControl::OfferKeyEventL(aKeyEvent,aType);
	DrawNow();
	}
开发者ID:kolayuk,项目名称:TweakS,代码行数:7,代码来源:SliderDialog.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 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();
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:34,代码来源:MainContainer.cpp

示例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();
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:33,代码来源:ShowString.cpp

示例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();
}
开发者ID:flaithbheartaigh,项目名称:almalert,代码行数:29,代码来源:phiimagepane.cpp

示例15: DrawNow

void CSmiley::FocusChanged(TDrawNow aDrawNow)
	{
	if (aDrawNow)
		{
		DrawNow();
		}
	}
开发者ID:huellif,项目名称:symbian-example,代码行数:7,代码来源:Custom.cpp


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