这篇教程C++ GetTitle函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetTitle函数的典型用法代码示例。如果您正苦于以下问题:C++ GetTitle函数的具体用法?C++ GetTitle怎么用?C++ GetTitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetTitle函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: PluginsCfgPluginSettings::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,
示例2: _Tvoid 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,
示例3: wxDialogWrapperExportMultiple::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,
示例4: inputCString 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;}
开发者ID:BackupTheBerlios,项目名称:iris-svn,代码行数:25,
示例5: GetTitleString HelpTopicInfo::GetTitle() const{ String t = GetTitle(GetCurrentLanguage()); if(IsNull(t)) t = GetDefaultTitle(); return t;}
开发者ID:AbdelghaniDr,项目名称:mirror,代码行数:7,
示例6: GetSelectedvoid 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,
示例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,
示例8: ListView_GetItemStatevoid 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,
|