您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ GetText函数代码示例

51自学网 2021-06-01 21:16:12
  C++
这篇教程C++ GetText函数代码示例写得很实用,希望能帮到您。

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

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

示例1: BeginScan

voidCBCSharpStyler::Scan	(	istream&			input,	const TokenExtra&	initData	){	BeginScan(input);	const JString& text = GetText();	Token token;	JFontStyle style;	do		{		token = NextToken();		if (token.type == kEOF)			{			break;			}		// save token starts		if (token.type == kID                 ||			token.type == kReservedCKeyword   ||			token.type == kBuiltInDataType    ||			token.type == kString             ||			token.type == kComment            ||			token.type == kDocComment)			{			SaveTokenStart(TokenExtra());			}		// set the style		const JIndex typeIndex = token.type - kWhitespace;		if (token.type == kWhitespace)			{			style = GetDefaultFontStyle();			}		else if (token.type == kComment    ||				 token.type == kDocComment ||				 token.type == kString)			{			style = GetTypeStyle(typeIndex);			}		else if (token.type == kPPDirective && SlurpPPComment(&(token.range)))			{			token.type = kComment;			style      = GetTypeStyle(kComment - kWhitespace);			}		else if (token.type == kPPDirective)			{			style = GetStyle(typeIndex, text.GetSubstring(GetPPNameRange()));			}		else if (token.type < kWhitespace)			{			style = GetTypeStyle(kError - kWhitespace);			}		else if (token.type > kError)	// misc			{			if (!GetWordStyle(text.GetSubstring(token.range), &style))				{				style = GetDefaultFontStyle();				}			}		else			{			style = GetStyle(typeIndex, text.GetSubstring(token.range));			}		}		while (SetStyle(token.range, style));}
开发者ID:raorn,项目名称:jx_application_framework,代码行数:73,


示例2: IsOn

bool CPrefsDialog::OKClicked(){	font_family defFamily;	font_style defStyle;	be_plain_font->GetFamilyAndStyle(&defFamily, &defStyle);	gPrefs->SetPrefString("defdoc font family", fNewFontFamily);	gPrefs->SetPrefString("defdoc font style", defStyle);	gPrefs->SetPrefDouble("defdoc font size", fNewFontSize);	be_bold_font->GetFamilyAndStyle(&defFamily, &defStyle);	gPrefs->SetPrefString("border font family", fNewBFontFamily);	gPrefs->SetPrefString("border font style", defStyle);	gPrefs->SetPrefDouble("border font size", fNewBFontSize);	gPrefs->SetPrefInt("decimal point", *GetText("decsep"));	gPrefs->SetPrefInt("thousands separator", *GetText("thoussep"));	gPrefs->SetPrefInt("list separator", *GetText("listsep"));	gPrefs->SetPrefInt("date separator", *GetText("datesep"));	gPrefs->SetPrefInt("time separator", *GetText("timesep"));	gPrefs->SetPrefString("date order", fDMY->FindMarked()->Label());		gPrefs->SetPrefInt("24 hours", IsOn("24 hours"));	gPrefs->SetPrefInt("Excel keys", IsOn("excel"));	gPrefs->SetPrefInt("Select Gray", IsOn("grayselect"));	gPrefs->SetPrefInt("start with new", IsOn("donew"));	gWithEqualSign = IsOn("formula starts with equal");	gPrefs->SetPrefInt("formula starts with equal", gWithEqualSign);	gPrefs->SetPrefInt("dark gridlines", 	IsOn("dark gridlines"));	if (gPrefs->GetPrefInt("dark gridlines", 0))		gGridColor = 10;	else		gGridColor = 6;	gPrefs->SetPrefString("c_symbol", GetText("c_symbol"));	gPrefs->SetPrefInt("c_before", IsOn("c_before"));	gPrefs->SetPrefInt("c_neg_par", IsOn("c_neg_par"));	gPrefs->SetPrefInt("c_digits", atoi(GetText("c_digits")));	if (fPageSetup)	{		char *ps = Bin2Hex(fPageSetup, fPageSetupSize);		gPrefs->SetPrefString("default page setup", ps);		FREE(ps);	}	BMessage msg(msg_WindowOptions);	msg.AddString("docfamily", fDocFontFamily);	msg.AddString("docstyle", "Roman");	msg.AddFloat("docsize", fDocFontSize);	msg.AddString("borderfamily", fDocBFontFamily);	msg.AddString("borderstyle", "Bold");	msg.AddFloat("bordersize", fDocBFontSize);	msg.AddBool("autorecalc", IsOn("autorecalc"));	msg.AddBool("displayzero", IsOn("displayzero"));	msg.AddBool("dispgrid", IsOn("dispgrid"));	msg.AddBool("disphead", IsOn("disphead"));	msg.AddBool("prgrid", IsOn("prgrid"));	msg.AddBool("prhead", IsOn("prhead"));		fOwner->PostMessage(&msg, fOwner->GetCellView());	BButton *b;	b = (BButton *)FindView("ok");	b->SetEnabled(false);	b = (BButton *)FindView("cancel");	b->SetEnabled(false);	InitFormatter();	return false;} /* CPrefsDialog::OKClicked */
开发者ID:ModeenF,项目名称:OpenSumIt,代码行数:72,


示例3: GetText

void CListBoxEx::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) {	m_pwndSBV->MoveWindow(m_rcSBV);	if ((int)lpDrawItemStruct->itemID < 0)		return; 	CString text;	GetText(lpDrawItemStruct->itemID, text);	CRect rect = lpDrawItemStruct->rcItem;	int cntItem = GetCount();	int numShow = m_rcSBV.Height() / m_nItemHeight;	// 
C++ GetTextColor函数代码示例
C++ GetTemplate函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。