Exemple #1
0
	CDateTimeUI::CDateTimeUI()
		: m_nType(0)
		, m_bReadOnly(false)
		, m_pWindow(NULL)
		, m_nDTUpdateFlag(DT_UPDATE)
	{
		SetTextStyle(DT_VCENTER | DT_CENTER);// Hujq 2015.08.31
		::GetLocalTime(&m_sysTime);
		UpdateText();		// add by:daviyang35 初始化界面时显示时间
		m_nDTUpdateFlag = DT_NONE;
	}
Exemple #2
0
void
nsMathMLTokenFrame::ProcessTextData()
{
    // see if the style changes from normal to italic or vice-versa
    if (!SetTextStyle())
        return;

    // explicitly request a re-resolve to pick up the change of style
    PresContext()->PresShell()->FrameConstructor()->
    PostRestyleEvent(mContent->AsElement(), eRestyle_Subtree, NS_STYLE_HINT_NONE);
}
EXPORT_C void CHuiCanvasGc::SetDefaults()
	{
	SetTextStyle(0);
    SetPenColor(TRgb(255,255,255));
	SetPenWidth(1.0);
	SetOpacity(1.0);
	SetPolygonDrawMode(EHuiNoFill);
	SetTextAlign(EHuiAlignHLeft, EHuiAlignVTop);
    SetDrawMode(EHuiCanvasDrawModeBlend);
    EnableEffectiveOpacity(ETrue);    
    SetPolygonFillTexture(NULL);
    SetPolygonFillTextureOrigin(TPoint(0,0));
	CancelClipping();
	}