當前位置: 首頁>>代碼示例>>C++>>正文


C++ GetTitle函數代碼示例

本文整理匯總了C++中GetTitle函數的典型用法代碼示例。如果您正苦於以下問題:C++ GetTitle函數的具體用法?C++ GetTitle怎麽用?C++ GetTitle使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了GetTitle函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的GetTitle函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。