• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ GetTitle函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: PluginsCfg

PluginSettings::PluginSettings(const GUID& Guid, bool Local):
	PluginsCfg(nullptr)
{
	const auto pPlugin = Global->CtrlObject->Plugins->FindPlugin(Guid);
	if (pPlugin)
	{
		string strGuid = GuidToStr(Guid);
		PluginsCfg = ConfigProvider().CreatePluginsConfig(strGuid, Local);
		m_Keys.emplace_back(PluginsCfg->CreateKey(HierarchicalConfig::root_key(), strGuid, &pPlugin->GetTitle()));

		if (!Global->Opt->ReadOnlyConfig)
		{
			DizList Diz;
			string strDbPath = Local ? Global->Opt->LocalProfilePath : Global->Opt->ProfilePath;
			AddEndSlash(strDbPath);
			strDbPath += L"PluginsData\\";
			Diz.Read(strDbPath);
			string strDbName = strGuid + L".db";
			string Description = string(pPlugin->GetTitle()) + L" (" + pPlugin->GetDescription() + L")";
			if(Description != NullToEmpty(Diz.GetDizTextAddr(strDbName, L"", 0)))
			{
				Diz.AddDizText(strDbName, L"", Description);
				Diz.Flush(strDbPath);
			}
		}
	}
}
开发者ID:chapgaga,项目名称:farmanager,代码行数:27,代码来源:plugsettings.cpp


示例2: _T

void CDBFExplorerDoc::OnFileExport() 
{
 	static TCHAR szFilters[] = _T("Text Files (*.txt;*.csv)|*.txt;*.csv|HTML Files (*.html;*.htm)|*.html;*.htm||");
	
	CString strFileName = GetTitle();
	int nPos = strFileName.ReverseFind('.');
	if (nPos != -1)
		strFileName = strFileName.Left(nPos);
	
	CExportFileDialog dlg(FALSE, NULL, strFileName, OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY, szFilters, GetActiveFrame());

	dlg.m_ofn.lpstrTitle = _T("Export database");

	if (dlg.DoModal() == IDOK)
	{
		strFileName = dlg.GetPathName();
		CString strExtension = dlg.GetFileExt();
		if (dlg.m_strType == _T("Text Files (*.txt;*.csv)"))
		{
			if (strExtension.IsEmpty())
				strFileName += _T(".txt");

			ExportToText(strFileName);
		}
		else
		if (dlg.m_strType == _T("HTML Files (*.html;*.htm)"))
		{
			if (strExtension.IsEmpty())
				strFileName += _T(".html");

			ExportToHTML(strFileName);
		}
	}	
}
开发者ID:tchv71,项目名称:StartPP,代码行数:34,代码来源:DBFExplorerDoc.cpp


示例3: wxDialogWrapper

ExportMultiple::ExportMultiple(AudacityProject *project)
: wxDialogWrapper(project, wxID_ANY, wxString(_("Export Multiple")))
{
   SetName(GetTitle());

   mProject = project;
   mTracks = project->GetTracks();
   // Construct an array of non-owning pointers
   for (const auto &plugin : mExporter.GetPlugins())
      mPlugins.push_back(plugin.get());

   this->CountTracksAndLabels();

   mBook = NULL;

   ShuttleGui S(this, eIsCreatingFromPrefs);

   // Creating some of the widgets cause events to fire
   // and we don't want that until after we're completely
   // created.  (Observed on Windows)
   mInitialized = false;
   PopulateOrExchange(S);
   mInitialized = true;

   Layout();
   Fit();
   SetMinSize(GetSize());
   Center();

   EnableControls();
}
开发者ID:rbuj,项目名称:audacity,代码行数:31,代码来源:ExportMultiple.cpp


示例4: input

CString CDiagramRadiobutton::Export( UINT /*format*/ )
/* ============================================================
	Function :		CDiagramRadiobutton::Export
	Description :	Exports this object to str using format
					
	Return :		CString		-	The resulting string
	Parameters :	UINT format	-	The format to export to
					
	Usage :			An example Export-function. In this case, 
					we are not using the format parameter, as 
					we only have one format.

   ============================================================*/
{
	return "";

	CString input( "\t<div class='controls' style='position:absolute;left:%i;top:%i;width:%i;height:%i;'><input onfocus='blur()' onclick='JavaScript:radiobuttonHandler(this)' type=radio name='%s'>%s</input></div>" );
	CString str;
	CRect rect = GetRect();
	CString title = GetTitle();
	title.Replace( " ", "&nbsp;" );
	str.Format( input, rect.left - 2, rect.top - 2, rect.Width(), rect.Height(), GetName(), title );

	return str;
}
开发者ID:BackupTheBerlios,项目名称:iris-svn,代码行数:25,代码来源:DiagramRadiobutton.cpp


示例5: GetTitle

String HelpTopicInfo::GetTitle() const
{
	String t = GetTitle(GetCurrentLanguage());
	if(IsNull(t))
		t = GetDefaultTitle();
	return t;
}
开发者ID:AbdelghaniDr,项目名称:mirror,代码行数:7,代码来源:help.cpp


示例6: GetSelected

void FbAuthorReplaceDlg::EndModal(int retCode)
{
	if ( retCode == wxID_OK) {
		int author = GetSelected();
		if (author) {
			wxString msg = _("Merge authors?");
			wxString title = GetTitle() + wxT("...");
			bool ok = wxMessageBox(msg, title, wxOK | wxCANCEL | wxICON_QUESTION) == wxOK;
			if (!ok) return;
		} else {
			wxMessageBox(_("Author not selected by replacement."), GetTitle());
			return;
		}
	}
	FbDialog::EndModal(retCode);
}
开发者ID:EvgeniiFrolov,项目名称:myrulib,代码行数:16,代码来源:FbAuthorDlg.cpp


示例7: _

void VAutoDialog::OnMove(wxCommandEvent& ev)
{
	wxString mbTitle = _("Moving telescope");
	wxLogDebug (wxT("VAutoDialog::OnMove starts telescope moving."));

	// Check whether target is valid
	if (!m_CurrentTarget.IsValid()) {
		wxMessageBox (_("No valid target is selected to move."), mbTitle, wxICON_EXCLAMATION | wxOK, this);
		return;
		}

	// Check whether the target is above the horizon
//	double lon = wxAtof (Properties::Instance().Get(STATION_LONGITUDE));
//	double lat = wxAtof (Properties::Instance().Get(STATION_LATITUDE));
//	Station station (lon, lat);
//	if (!m_CurrentTarget.GetCoord().AboveHorizon(station, wxDateTime::Now().GetJulianDayNumber()))

	if (!IsTargetAboveHorizon (m_CurrentTarget))
	{
		wxMessageBox (_("The object currently is under the horizon"), GetTitle(), wxICON_EXCLAMATION | wxOK, this);
		return;
	}

	DoMove ();
}
开发者ID:kovihome,项目名称:VAuto,代码行数:25,代码来源:VAutoDialog.cpp


示例8: ListView_GetItemState

void CPpcMainWnd::SortFile(int nSort)
{
#define CURRENT_MASK	0x8000
	int i, nFocus = -1;
	FILEINFO* p;
	TCHAR szTitle[MAX_PATH];

	for (i = 0; i < m_pListFile->GetCount(); i++) {
		p = (FILEINFO*)m_pListFile->GetAt(i);
		p->dwUser = (i == m_nCurrent) ? CURRENT_MASK : 0;
		p->dwUser |= ListView_GetItemState(m_hwndLV, i, LVIS_FOCUSED | LVIS_SELECTED);
	}

	m_pListFile->Sort(SortCompareProc, nSort);
	for (i = 0; i < m_pListFile->GetCount(); i++) {
		p = (FILEINFO*)m_pListFile->GetAt(i);
		if (p->dwUser & CURRENT_MASK)
			m_nCurrent = i;
		GetTitle(i, szTitle);
		ListView_SetItemText(m_hwndLV, i, 0, szTitle);
		ListView_SetItemState(m_hwndLV, i, p->dwUser, LVIS_FOCUSED | LVIS_SELECTED);
		if (p->dwUser &LVIS_FOCUSED)
			nFocus = i;
	}
	if (nFocus != -1)
		ListView_EnsureVisible(m_hwndLV, nFocus, FALSE);

	UpdateTrack();
}
开发者ID:jiangzhengwenjz,项目名称:rtoss,代码行数:29,代码来源:PpcMainWnd.cpp


示例9: MAP_GetId3TagFile

BOOL CPpcMainWnd::InsertFile(LPTSTR pszFile, int nIndex)
{
	if (!m_hMap) return FALSE;

	// 有効性チェック
	if (!IsValidStream(pszFile))
		return FALSE;

	// リストに挿入
	FILEINFO* pInfo = new FILEINFO;
	MAP_GetId3TagFile(m_hMap, pszFile, &pInfo->tag);
	_tcscpy(pInfo->szPath, pszFile);
	m_pListFile->Insert((DWORD)pInfo, nIndex);

	// リストビューに追加
	TCHAR szTitle[MAX_PATH];
	GetTitle(m_pListFile->GetCount() - 1, szTitle);
	LVITEM lvi = {0};
	lvi.mask = LVIF_TEXT;
	lvi.iItem = nIndex;
	lvi.pszText = szTitle;
	ListView_InsertItem(m_hwndLV, &lvi);

	// 開いていない場合は開く
	OpenFirstFile();

	return TRUE;
}
开发者ID:jiangzhengwenjz,项目名称:rtoss,代码行数:28,代码来源:PpcMainWnd.cpp


示例10: _tcscpy

// リスト
BOOL CPpcMainWnd::AddFile(LPTSTR pszFile, LPTSTR pszTitle)
{
	if (!m_hMap) return FALSE;

	// 存在チェック
	if (IsExisting(pszFile))
		return FALSE;

	// 有効性チェック
	if (!IsValidStream(pszFile))
		return FALSE;

	// リストに追加
	FILEINFO* pInfo = new FILEINFO;
	if (pszTitle)
		_tcscpy(pInfo->szDisplayName, pszTitle);
	else 
		MAP_GetId3TagFile(m_hMap, pszFile, &pInfo->tag);
	_tcscpy(pInfo->szPath, pszFile);
	m_pListFile->Add((DWORD)pInfo);

	// リストビューに追加
	TCHAR szTitle[MAX_PATH];
	GetTitle(m_pListFile->GetCount() - 1, szTitle);
	LVITEM lvi = {0};
	lvi.mask = LVIF_TEXT;
	lvi.iItem = ListView_GetItemCount(m_hwndLV);
	lvi.pszText = szTitle;
	ListView_InsertItem(m_hwndLV, &lvi);

	// 開いていない場合は開く
	OpenFirstFile();

	return TRUE;
}
开发者ID:jiangzhengwenjz,项目名称:rtoss,代码行数:36,代码来源:PpcMainWnd.cpp


示例11: GetTitle

void	CTitleManager::AddEarned(int nId)
{
	EarnedTitle Temp;
	Temp.nId		= nId;
	Temp.strTitle	= GetTitle(nId); 
	m_vecEarned.push_back(Temp);
}
开发者ID:iceberry,项目名称:flyffsf,代码行数:7,代码来源:honor.cpp


示例12: rect

void CDiagramRadiobutton::Draw( CDC* dc, CRect rect )
/* ============================================================
	Function :		CDiagramRadiobutton::Draw
	Description :	Draws the "control"
					
	Return :		void
	Parameters :	CDC* dc		-	CDC to draw to
					CRect rect	-	Total object rect (zoomed)
					
	Usage :			

   ============================================================*/
{

	dc->SelectObject( CStdGrfx::dialogBrush() );
	dc->SelectObject( CStdGrfx::dialogPen() );

	dc->Rectangle( rect );

	LOGFONT lf;
	CFont chk;
	CFont font;

	GetFont( lf );
	// MS Sans Serif will not scale below 8 pts
	if( GetZoom() < 1 )
		lstrcpy( lf.lfFaceName, _T( "Arial" ) );
	font.CreateFontIndirect( &lf );

	// Marlett is used for the circle
	chk.CreateFont(  ( int ) ( ( double ) lf.lfHeight * 1.25 ), 0, 0, 0, FW_NORMAL, 0, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DECORATIVE, "Marlett" );
	dc->SetBkMode( TRANSPARENT );
	dc->SelectObject( &chk );

	dc->SetTextColor( ::GetSysColor( COLOR_WINDOW ) );
	dc->TextOut( rect.left, rect.top, "n" );

	dc->SetTextColor( ::GetSysColor( COLOR_3DSHADOW ) );
	dc->TextOut( rect.left, rect.top, "j" );

	dc->SetTextColor( ::GetSysColor( COLOR_3DHIGHLIGHT  ) );
	dc->TextOut( rect.left, rect.top, "k" );

	dc->SetTextColor( ::GetSysColor( COLOR_3DDKSHADOW ) );
	dc->TextOut( rect.left, rect.top, "l" );

	dc->SetTextColor( ::GetSysColor( COLOR_3DLIGHT ) );
	dc->TextOut( rect.left, rect.top, "m" );

	dc->SelectObject( &font );

	dc->SetTextColor( ::GetSysColor( COLOR_BTNTEXT ) );
	rect.left += ( int ) ( ( double ) abs( lf.lfHeight ) * 1.5 );
	dc->DrawText( GetTitle(), rect, DT_SINGLELINE );

	dc->SelectStockObject( DEFAULT_GUI_FONT );
	dc->SelectStockObject( BLACK_PEN );
	dc->SelectStockObject( WHITE_BRUSH );

}
开发者ID:BackupTheBerlios,项目名称:iris-svn,代码行数:60,代码来源:DiagramRadiobutton.cpp


示例13: AddShader

int CShaderListBox::AddShader(const Shader& shader)
{
    int ret = CListBox::AddString(GetTitle(shader));
    if (ret >= 0) {
        m_List.push_back(shader);
    }
    return ret;
}
开发者ID:1ldk,项目名称:mpc-hc,代码行数:8,代码来源:PPageShaders.cpp


示例14: GetTitle

int CShaderListBox::InsertShader(int nIndex, const Shader& shader)
{
    int ret = CListBox::InsertString(nIndex, GetTitle(shader));
    if (ret >= 0) {
        m_List.insert(m_List.begin() + ret, shader);
    }
    return ret;
}
开发者ID:1ldk,项目名称:mpc-hc,代码行数:8,代码来源:PPageShaders.cpp


示例15: st

//___________________________________________________________________________________________
void KVIntegerList::DeducePopulationFromTitle()
{
//protected method, utilisee par le Streamer

   KVString st(GetTitle());
   SetPopulation(st.Atoi());

}
开发者ID:GiuseppePast,项目名称:kaliveda,代码行数:9,代码来源:KVIntegerList.cpp


示例16: LOG_MSG

void WeightsManFrame::OnActivate(wxActivateEvent& event)
{
	LOG_MSG("In WeightsManFrame::OnActivate");
	if (event.GetActive()) {
		RegisterAsActive("WeightsManFrame", GetTitle());
	}
    if ( event.GetActive() && template_canvas ) template_canvas->SetFocus();
}
开发者ID:LreeLenn,项目名称:geoda,代码行数:8,代码来源:WeightsManDlg.cpp


示例17:

NS_IMETHODIMP
WebBrowserPersistLocalDocument::GetTitle(nsAString& aTitle)
{
    nsAutoString titleBuffer;
    mDocument->GetTitle(titleBuffer);
    aTitle = titleBuffer;
    return NS_OK;
}
开发者ID:lazyparser,项目名称:gecko-dev,代码行数:8,代码来源:WebBrowserPersistLocalDocument.cpp


示例18: RETURN_IF_ERROR

OP_STATUS PageBasedAutocompleteItem::UpdateRank(const OpStringC& match_text)
{
	m_rank = 0;
	// title match
	OpString title;
	RETURN_IF_ERROR(GetTitle(title));
	if (m_search_type == PAGE_CONTENT)
		m_rank += CalculateRank(match_text, title, " ", RANK_PAGE_TITLE_FACTOR / 2);
	else
		m_rank += CalculateRank(match_text, title, " ", RANK_PAGE_TITLE_FACTOR);

	// url address match
	OpString address;
	RETURN_IF_ERROR(GetStrippedAddress(address));
	m_rank += CalculateRank(match_text, address, "/", RANK_PAGE_URL_FACTOR);

	if (m_search_type == BOOKMARK)
	{
		m_rank = m_rank * 2; // bookmark bonus;

		if (m_bookmark)
			m_rank += CalculateRank(match_text, m_bookmark->GetName(), " ", RANK_BOOKMARK_TITLE_FACTOR);

		// for bookmarks display and go to url address might be not the same thing, which is awesome;)
		OpString display_addr;
		if(HasDisplayAddress() && OpStatus::IsSuccess(GetDisplayAddress(display_addr)))
		{
			OpString domain;
			unsigned domain_offset = 0;
			RETURN_IF_ERROR(StringUtils::FindDomain(display_addr, domain, domain_offset));

			OpString cut_address;
			RETURN_IF_ERROR(cut_address.Set(display_addr.SubString(domain_offset).CStr()));
			m_rank += CalculateRank(match_text, cut_address, "/", RANK_PAGE_URL_FACTOR);
		}

		OpAutoVector<OpString> nick_urls;
		if (address.HasContent() && !uni_strpbrk(address.CStr(), UNI_L(".:/?\\")))
			g_hotlist_manager->ResolveNickname(address, nick_urls);

		// Check if it's a bookmark nickname
		if (nick_urls.GetCount() >= 1)
		{
			// address might have nick value, in case we deal with nicknamed bookmark
			if (address == match_text)
				m_rank += RANK_BOOKMARK_NICKNAME_FACTOR;
			else
				m_rank += CalculateRank(match_text, address, " ", RANK_PAGE_URL_FACTOR) * 2;
		}
	}

	// time ranking
	time_t two_months_earlier = g_timecache->CurrentTime() - 60*24*60*60;
	time_t access_time = GetAccessed();
	m_rank += max(RANK_TIME_FACTOR * (access_time - two_months_earlier) / (60*24*60*60) , RANK_TIME_MAX_DOWNGRADE);

	return OpStatus::OK;
}
开发者ID:prestocore,项目名称:browser,代码行数:58,代码来源:HistoryAutocompleteModel.cpp


示例19: RegisterAsActive

void TestScrollWinFrame::OnActivate(wxActivateEvent& event)
{
  //LOG_MSG("In TestScrollWinFrame::OnActivate");
	if (event.GetActive()) {
		RegisterAsActive("TestScrollWinFrame", GetTitle());
	}
    if ( event.GetActive() && template_canvas )
        template_canvas->SetFocus();
}
开发者ID:LreeLenn,项目名称:geoda,代码行数:9,代码来源:TestScrollWinView.cpp


示例20: GetTitle

// The application preferences have changed, so update any elements that may
// depend on them.
void ToolBar::UpdatePrefs()
{
#if wxUSE_TOOLTIPS
   // Change the tooltip of the grabber
   mGrabber->SetToolTip( GetTitle() );
#endif

   return;
}
开发者ID:JordanGraves,项目名称:TabMagic,代码行数:11,代码来源:ToolBar.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ GetToken函数代码示例发布时间:2022-05-30
下一篇:
C++ GetTimestampStr函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap