本文整理汇总了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);
}
}
}
}
示例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);
}
}
}
示例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();
}
示例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( " ", " " );
str.Format( input, rect.left - 2, rect.top - 2, rect.Width(), rect.Height(), GetName(), title );
return str;
}
示例5: GetTitle
String HelpTopicInfo::GetTitle() const
{
String t = GetTitle(GetCurrentLanguage());
if(IsNull(t))
t = GetDefaultTitle();
return t;
}
示例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);
}
示例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 ();
}
示例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();
}
示例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;
}
示例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;
}
示例11: GetTitle
void CTitleManager::AddEarned(int nId)
{
EarnedTitle Temp;
Temp.nId = nId;
Temp.strTitle = GetTitle(nId);
m_vecEarned.push_back(Temp);
}
示例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 );
}
示例13: AddShader
int CShaderListBox::AddShader(const Shader& shader)
{
int ret = CListBox::AddString(GetTitle(shader));
if (ret >= 0) {
m_List.push_back(shader);
}
return ret;
}
示例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;
}
示例15: st
//___________________________________________________________________________________________
void KVIntegerList::DeducePopulationFromTitle()
{
//protected method, utilisee par le Streamer
KVString st(GetTitle());
SetPopulation(st.Atoi());
}