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

C++ GetDisplayName函数代码示例

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

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



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

示例1: GetDisplayName

wxString DocumentListCtrl::OnGetItemText (long item, long column) const
{
	int sorteditem = _sortedIndices[(int)item];
	int num_docs = _ferretparent->GetDocumentList().Size();
	if (num_docs > 0)
	{
		int doc1 = _document1 [sorteditem];
		int doc2 = _document2 [sorteditem];
		int position = 0;
		if (column == 0)
		{
			return GetDisplayName (doc1);
		}
		else if (column == 1)
		{
			return GetDisplayName (doc2);
		}
		else // if (column == 2)
		{
			return wxString::Format("%f", 
					_ferretparent->GetDocumentList().ComputeResemblance (doc1, doc2, _remove_common_trigrams, _ignore_template_material));
		}
	}
	else
	{
		return "No items in document list";
	}
}
开发者ID:abame,项目名称:ferret,代码行数:28,代码来源:resultstable.cpp


示例2: GetDisplayName

void Explorerplusplus::HandleAddressBarText(void)
{
	LPITEMIDLIST pidl = NULL;
	TCHAR szAddressBarTitle[MAX_PATH];

	pidl = m_pActiveShellBrowser->QueryCurrentDirectoryIdl();

	TCHAR szParsingPath[MAX_PATH];

	GetDisplayName(pidl,szParsingPath,SHGDN_FORPARSING);

	/* If the path is a GUID (i.e. of the form
	::{20D04FE0-3AEA-1069-A2D8-08002B30309D}), we'll
	switch to showing the in folder name.
	Otherwise, we'll show the full path.
	Driven by the principle that GUID's should NOT
	be shown directly to users. */
	if(IsPathGUID(szParsingPath))
	{
		GetDisplayName(pidl,szAddressBarTitle,SHGDN_INFOLDER);
	}
	else
	{
		StringCchCopy(szAddressBarTitle,SIZEOF_ARRAY(szAddressBarTitle),
			szParsingPath);
	}

	SetComboBoxExTitleString(m_hAddressBar,pidl,szAddressBarTitle);

	CoTaskMemFree(pidl);
}
开发者ID:linquize,项目名称:explorerplus-custom,代码行数:31,代码来源:HandleWindowState.cpp


示例3: GetDisplayID

int CBillReview::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	int is_business; //CAMqa66752
	TCHAR		bill_company[GAL_SI_SERVICE_COMPANY_LEN];
	GAL_ERROR Error;
	CString AccountName;

	if (CDialog::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	// TODO: Add your specialized creation code here
  
     // get the account info....
  m_sBillRevAccountId = GetDisplayID();
  is_business = m_lpAccount->GetIsBusinessCode(); //CAMqa66752
	if (is_business)
	{
			if(galGetAccount_bill_company(m_lpAccount->m_Account, bill_company, &Error ) == GAL_FAILURE )

                AccountName = GetDisplayName();
				 
			else
			    AccountName = bill_company;
		}
	else               
	  {
		 AccountName = GetDisplayName();
	  }
  
	m_sBillRevAccountName  = AccountName;
		return 0;
}
开发者ID:huilang22,项目名称:Projects,代码行数:32,代码来源:billreview.cpp


示例4: LOG

void ExeComponent::Wait(DWORD tt)
{
    ProcessComponent::Wait(tt);

    DWORD exitcode = ProcessComponent::GetProcessExitCode();

    LOG(L"Component '" << id << "' return code " << exitcode
        << DVLib::FormatMessage(L" (0x%x).", exitcode));

    // check for reboot
    if (! returncodes_reboot.empty() && IsReturnCode(exitcode, returncodes_reboot))
    {
        LOG(L"Component '" << id << "' return code '" << exitcode
            << L", defined as reboot required in '" << returncodes_reboot << L".");
        return;
    }

    // check for explicit success, where defined
    if (returncodes_success.empty())
    {
        CHECK_BOOL(ERROR_SUCCESS == exitcode,
                   L"Error executing '" << id << "' (" << GetDisplayName() << L"): " << exitcode << DVLib::FormatMessage(L" (0x%x)", exitcode));
    }
    else
    {
        CHECK_BOOL(IsReturnCode(exitcode, returncodes_success),
                   L"Error executing component '" << id << "' (" << GetDisplayName() << L"), return code "
                   << exitcode << DVLib::FormatMessage(L" (0x%x)", exitcode)
                   << L" is not in '" << returncodes_success << L"'");

        LOG(L"Component '" << id << "' (" << GetDisplayName() << L") return code " << exitcode
            << DVLib::FormatMessage(L" (0x%x)", exitcode)
            << L", defined as success in '" << returncodes_success << L"'.");
    }
}
开发者ID:Jairajp1992,项目名称:dotnetinstaller,代码行数:35,代码来源:ExeComponent.cpp


示例5: ParseProperties

bool CUDisks2Provider::FilesystemPropertiesChanged(const char *object, DBusMessageIter *propsIter, IStorageEventsCallback *callback)
{
  if (m_filesystems.count(object) > 0)
  {
    auto fs = m_filesystems[object];
    CLog::Log(LOGDEBUG, LOGDBUS, "UDisks2: Before update: %s", fs->toString());
    bool wasMounted = fs->m_isMounted;
    auto ParseFilesystemProperty = std::bind(&CUDisks2Provider::ParseFilesystemProperty, this,
                                             std::placeholders::_1,
                                             std::placeholders::_2, std::placeholders::_3);
    ParseProperties(fs, propsIter, ParseFilesystemProperty);
    CLog::Log(LOGDEBUG, LOGDBUS, "UDisks2: After update: %s", fs->toString());

    if (!wasMounted && fs->m_isMounted && fs->IsApproved())
    {
      CLog::Log(LOGINFO, "UDisks2: Added %s", fs->m_mountPoint);
      if (callback)
        callback->OnStorageAdded(fs->GetDisplayName(), fs->m_mountPoint);
      return true;
    }
    else if (wasMounted && !fs->m_isMounted)
    {
      CLog::Log(LOGINFO, "UDisks2: Removed %s", fs->m_block->m_device);
      if (callback)
        callback->OnStorageSafelyRemoved(fs->GetDisplayName());
      return true;
    }
  }
  return false;
}
开发者ID:68foxboris,项目名称:xbmc,代码行数:30,代码来源:UDisks2Provider.cpp


示例6: GetDisplayName

inline VmbErrorType EnumEntry::GetDisplayName( std::string &rStrDisplayName ) const
{
    VmbErrorType res;
    VmbUint32_t nLength;

    res = GetDisplayName( NULL, nLength );
    if ( VmbErrorSuccess == res )
    {
        if ( 0 < nLength )
        {
            rStrDisplayName.resize( nLength );
            res = GetDisplayName( &rStrDisplayName[0], nLength );
            if ( VmbErrorSuccess == res )
            {
                size_t nPos = rStrDisplayName.find( '\0' );
                if ( nLength-1 > nPos )
                {
                    rStrDisplayName.resize( nPos );
                }
            }
        }
        else
        {
            rStrDisplayName.clear();
        }
    }

    return res;
}
开发者ID:SanderGrielens,项目名称:rapido,代码行数:29,代码来源:EnumEntry.hpp


示例7: ILCombine

int CALLBACK CShellBrowser::SortByType(int InternalIndex1,int InternalIndex2) const
{
	if(m_bVirtualFolder)
	{
		TCHAR FullFileName1[MAX_PATH];
		LPITEMIDLIST pidlComplete1 = ILCombine(m_pidlDirectory,m_pExtraItemInfo[InternalIndex1].pridl);
		GetDisplayName(pidlComplete1,FullFileName1,SHGDN_FORPARSING);
		CoTaskMemFree(pidlComplete1);

		TCHAR FullFileName2[MAX_PATH];
		LPITEMIDLIST pidlComplete2 = ILCombine(m_pidlDirectory,m_pExtraItemInfo[InternalIndex2].pridl);
		GetDisplayName(pidlComplete2,FullFileName2,SHGDN_FORPARSING);
		CoTaskMemFree(pidlComplete2);

		BOOL IsRoot1 = PathIsRoot(FullFileName1);
		BOOL IsRoot2 = PathIsRoot(FullFileName2);

		if(IsRoot1 && !IsRoot2)
		{
			return -1;
		}
		else if(!IsRoot1 && IsRoot2)
		{
			return 1;
		}
	}

	std::wstring Type1 = GetTypeColumnText(InternalIndex1);
	std::wstring Type2 = GetTypeColumnText(InternalIndex2);

	return StrCmpLogicalW(Type1.c_str(),Type2.c_str());
}
开发者ID:Rajuk-,项目名称:explorerplusplus,代码行数:32,代码来源:SortManager.cpp


示例8: GetDisplayName

int CALLBACK CShellBrowser::SortByType(const BasicItemInfo_t &itemInfo1, const BasicItemInfo_t &itemInfo2) const
{
	if(m_bVirtualFolder)
	{
		TCHAR FullFileName1[MAX_PATH];
		GetDisplayName(itemInfo1.pidlComplete.get(),FullFileName1,SIZEOF_ARRAY(FullFileName1),SHGDN_FORPARSING);

		TCHAR FullFileName2[MAX_PATH];
		GetDisplayName(itemInfo2.pidlComplete.get(),FullFileName2,SIZEOF_ARRAY(FullFileName2),SHGDN_FORPARSING);

		BOOL IsRoot1 = PathIsRoot(FullFileName1);
		BOOL IsRoot2 = PathIsRoot(FullFileName2);

		if(IsRoot1 && !IsRoot2)
		{
			return -1;
		}
		else if(!IsRoot1 && IsRoot2)
		{
			return 1;
		}
	}

	std::wstring Type1 = GetTypeColumnText(itemInfo1);
	std::wstring Type2 = GetTypeColumnText(itemInfo2);

	return StrCmpLogicalW(Type1.c_str(),Type2.c_str());
}
开发者ID:derceg,项目名称:explorerplusplus,代码行数:28,代码来源:SortManager.cpp


示例9: if

BOOL CDownloadWithTiger::SetHashset(BYTE* pSource, DWORD nSource)
{
	if ( m_nSize == SIZE_UNKNOWN ) return FALSE;
	if ( m_pHashset.IsAvailable() ) return TRUE;

	if ( nSource == 0 && m_bED2K )
	{
		m_pHashset.FromRoot( &m_pED2K );
	}
	else if ( m_pHashset.FromBytes( pSource, nSource, m_nSize ) )
	{
		MD4 pRoot;
		m_pHashset.GetRoot( &pRoot );

		if ( m_bED2K && m_pED2K != pRoot )
		{
			m_pHashset.Clear();
			theApp.Message( MSG_ERROR, IDS_DOWNLOAD_HASHSET_CORRUPT,
				(LPCTSTR)GetDisplayName() );
			return FALSE;
		}
		else if ( ! m_bED2K )
		{
			m_bED2K = TRUE;
			m_pED2K = pRoot;
		}
	}
	else
	{
		theApp.Message( MSG_ERROR, IDS_DOWNLOAD_HASHSET_CORRUPT,
			(LPCTSTR)GetDisplayName() );
		return FALSE;
	}

	m_nHashsetBlock	= m_pHashset.GetBlockCount();
	m_pHashsetBlock	= new BYTE[ m_nHashsetBlock ];

	ZeroMemory( m_pHashsetBlock, sizeof(BYTE) * m_nHashsetBlock );

	SetModified();

	theApp.Message( MSG_DEFAULT, IDS_DOWNLOAD_HASHSET_READY,
		(LPCTSTR)GetDisplayName(),
		(LPCTSTR)Settings.SmartVolume( ED2K_PART_SIZE, FALSE ) );

	Neighbours.SendDonkeyDownload( reinterpret_cast<CDownload*>( this ) );

	return TRUE;
}
开发者ID:ericfillipe1,项目名称:shareaza-code,代码行数:49,代码来源:DownloadWithTiger.cpp


示例10: ASSERT

void CDownload::OnDownloaded()
{
	ASSERT( m_bComplete == false );

	theApp.Message( MSG_NOTICE, IDS_DOWNLOAD_COMPLETED, GetDisplayName() );
	m_tCompleted = GetTickCount();
	m_bDownloading = false;

	StopSearch();

	CloseTransfers();

	//AppendMetadata();

	if ( GetTaskType() == dtaskMergeFile || GetTaskType() == dtaskPreviewRequest )
		AbortTask();

//	LibraryBuilder.m_bBusy = true;	// ?

	m_pTask.Copy();

	Statistics.Current.Downloads.Files++;

	SetModified();
}
开发者ID:GetEnvy,项目名称:Envy,代码行数:25,代码来源:Download.cpp


示例11: SNew

TSharedRef<ITableRow> FDetailCategoryImpl::GenerateNodeWidget( const TSharedRef<STableViewBase>& OwnerTable, const FDetailColumnSizeData& ColumnSizeData, const TSharedRef<IPropertyUtilities>& PropertyUtilities ) 
{
	return
		SNew( SDetailCategoryTableRow, AsShared(), OwnerTable )
		.DisplayName( GetDisplayName() )
		.HeaderContent( HeaderContentWidget );
}
开发者ID:Tigrouzen,项目名称:UnrealEngine-4,代码行数:7,代码来源:DetailCategoryBuilderImpl.cpp


示例12: InitBackendInfo

void VideoBackend::ShowConfig(void* parent_handle)
{
	if (!m_initialized)
		InitBackendInfo();

	Host_ShowVideoConfig(parent_handle, GetDisplayName(), "gfx_opengl");
}
开发者ID:aichunyu,项目名称:dolphin,代码行数:7,代码来源:main.cpp


示例13: SetTriggerTextOfCommand

bool pawsConfigKeys::OnFingering(csString string, psControl::Device device, uint button, uint32 mods)
{
    if (fingWnd == NULL || !fingWnd->IsVisible())
        return true;

    bool changed = false;

    if (string == NO_BIND)  // Removing trigger
    {
        psengine->GetCharControl()->RemapTrigger(editedCmd,psControl::NONE,0,0);
        changed = true;
    }
    else  // Changing trigger
    {
        changed = psengine->GetCharControl()->RemapTrigger(editedCmd,device,button,mods);
    }

    if (changed)
    {
        SetTriggerTextOfCommand(editedCmd,string);
        dirty = true;
        return true;  // Hide fingering window
    }
    else  // Map already exists
    {
        const psControl* other = psengine->GetCharControl()->GetMappedTrigger(device,button,mods);
        CS_ASSERT(other);
        if (other->name != editedCmd)
        {
            fingWnd->SetCollisionInfo(GetDisplayName(other->name));
            return false;  // Keep fingering window up; invalid combo to set
        }
        else return true;  // Hide fingering window; combo is the same as old
    }
}
开发者ID:Chettie,项目名称:Eulora-client,代码行数:35,代码来源:pawsconfigkeys.cpp


示例14: TreeView_GetSelection

void Explorerplusplus::OnTreeViewSetFileAttributes(void)
{
	HTREEITEM hItem = TreeView_GetSelection(m_hTreeView);

	if(hItem == NULL)
	{
		return;
	}

	std::list<NSetFileAttributesDialogExternal::SetFileAttributesInfo_t> sfaiList;
	NSetFileAttributesDialogExternal::SetFileAttributesInfo_t sfai;

	LPITEMIDLIST pidlItem = m_pMyTreeView->BuildPath(hItem);
	HRESULT hr = GetDisplayName(pidlItem,sfai.szFullFileName,SIZEOF_ARRAY(sfai.szFullFileName),SHGDN_FORPARSING);
	CoTaskMemFree(pidlItem);

	if(hr == S_OK)
	{
		HANDLE hFindFile = FindFirstFile(sfai.szFullFileName,&sfai.wfd);

		if(hFindFile != INVALID_HANDLE_VALUE)
		{
			FindClose(hFindFile);

			sfaiList.push_back(sfai);

			CSetFileAttributesDialog SetFileAttributesDialog(m_hLanguageModule,
				IDD_SETFILEATTRIBUTES,m_hContainer,sfaiList);

			SetFileAttributesDialog.ShowModalDialog();
		}
	}
}
开发者ID:hollylee,项目名称:explorerplusplus,代码行数:33,代码来源:TreeViewHandler.cpp


示例15: CS_ASSERT

void pawsConfigKeys::UpdateNicks(pawsTreeNode * subtreeRoot)
{
    if (subtreeRoot == NULL)
        subtreeRoot = tree->GetRoot();

    if (subtreeRoot == NULL) return;
    
    pawsSeqTreeNode * rootAsSeq;
    pawsTreeNode * child;
    pawsTextBox * label;

    rootAsSeq = dynamic_cast<pawsSeqTreeNode*> (subtreeRoot);
    if (rootAsSeq != NULL   &&   rootAsSeq != tree->GetRoot())
    {
        label = dynamic_cast<pawsTextBox*> (rootAsSeq->GetSeqWidget(0));
        CS_ASSERT(label);
        
        psCharController* manager = psengine->GetCharControl();
        
        // Update the name label
        const psControl* ctrl = manager->GetTrigger( subtreeRoot->GetName() );
        if (ctrl)
            label->SetText( GetDisplayName(ctrl->name) );
    }


    child = subtreeRoot->GetFirstChild();
    while (child != NULL)
    {
        UpdateNicks(child);
        child = child->GetNextSibling();
    }
}
开发者ID:Chettie,项目名称:Eulora-client,代码行数:33,代码来源:pawsconfigkeys.cpp


示例16: AbortTask

void CDownload::Remove()
{
	AbortTask();
	StopTrying();
	CloseTorrent();
	CloseTransfers();

	theApp.Message( MSG_NOTICE, IDS_DOWNLOAD_REMOVE, (LPCTSTR)GetDisplayName() );

	IsCompleted() ?
		CloseFile() :
		DeleteFile();

	DeletePreviews();

	if ( ! m_sPath.IsEmpty() )
	{
		DeleteFileEx( m_sPath + L".png", FALSE, FALSE, TRUE );
		DeleteFileEx( m_sPath + L".sav", FALSE, FALSE, TRUE );
		DeleteFileEx( m_sPath, FALSE, FALSE, TRUE );
		m_sPath.Empty();
	}

	Downloads.Remove( this );
}
开发者ID:GetEnvy,项目名称:Envy,代码行数:25,代码来源:Download.cpp


示例17: GLW_ChangeDislaySettingsIfNeeded

/*
===================
GLW_ChangeDislaySettingsIfNeeded

Optionally ChangeDisplaySettings to get a different fullscreen resolution.
Default uses the full desktop resolution.
===================
*/
static bool GLW_ChangeDislaySettingsIfNeeded( glimpParms_t parms ) {
    // If we had previously changed the display settings on a different monitor,
    // go back to standard.
    if ( win32.cdsFullscreen != 0 && win32.cdsFullscreen != parms.fullScreen ) {
        win32.cdsFullscreen = 0;
        ChangeDisplaySettings( 0, 0 );
        Sys_Sleep( 1000 ); // Give the driver some time to think about this change
    }

    // 0 is dragable mode on desktop, -1 is borderless window on desktop
    if ( parms.fullScreen <= 0 ) {
        return true;
    }

    // if we are already in the right resolution, don't do a ChangeDisplaySettings
    int x, y, width, height, displayHz;

    if ( !GetDisplayCoordinates( parms.fullScreen - 1, x, y, width, height, displayHz ) ) {
        return false;
    }
    if ( width == parms.width && height == parms.height && ( displayHz == parms.displayHz || parms.displayHz == 0 ) ) {
        return true;
    }

    DEVMODE dm = {};

    dm.dmSize = sizeof( dm );

    dm.dmPelsWidth  = parms.width;
    dm.dmPelsHeight = parms.height;
    dm.dmBitsPerPel = 32;
    dm.dmFields     = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL;
    if ( parms.displayHz != 0 ) {
        dm.dmDisplayFrequency = parms.displayHz;
        dm.dmFields |= DM_DISPLAYFREQUENCY;
    }

    common->Printf( "...calling CDS: " );

    const char * const deviceName = GetDisplayName( parms.fullScreen - 1 );

    int		cdsRet;
    if ( ( cdsRet = ChangeDisplaySettingsEx(
                        deviceName,
                        &dm,
                        NULL,
                        CDS_FULLSCREEN,
                        NULL) ) == DISP_CHANGE_SUCCESSFUL ) {
        common->Printf( "ok\n" );
        win32.cdsFullscreen = parms.fullScreen;
        return true;
    }

    common->Printf( "^3failed^0, " );
    PrintCDSError( cdsRet );
    return false;
}
开发者ID:neilogd,项目名称:DOOM-3-BFG,代码行数:65,代码来源:win_glimp.cpp


示例18: GetCommandOfButton

bool pawsConfigKeys::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget)
{
    editedCmd = GetCommandOfButton(widget);
    if (editedCmd.IsEmpty())
        return false;

    fingWnd->ShowDialog(this, GetDisplayName(editedCmd));
    return true;
}
开发者ID:Chettie,项目名称:Eulora-client,代码行数:9,代码来源:pawsconfigkeys.cpp


示例19: ILCombine

void CShellBrowser::QueryFullItemNameInternal(int iItemInternal,TCHAR *szFullFileName,UINT cchMax) const
{
	LPITEMIDLIST	pidlComplete = NULL;

	pidlComplete = ILCombine(m_pidlDirectory,m_pExtraItemInfo[iItemInternal].pridl);

	GetDisplayName(pidlComplete,szFullFileName,cchMax,SHGDN_FORPARSING);

	CoTaskMemFree(pidlComplete);
}
开发者ID:3scp8,项目名称:explorerplusplus,代码行数:10,代码来源:iShellBrowser.cpp


示例20: TEST

TEST(GetDisplayName, Simple)
{
	TCHAR szFullFileName[MAX_PATH];
	GetTestResourceFilePath(L"Metadata.jpg", szFullFileName, SIZEOF_ARRAY(szFullFileName));

	TCHAR szDisplayName[MAX_PATH];
	HRESULT hr = GetDisplayName(szFullFileName, szDisplayName, SIZEOF_ARRAY(szDisplayName), SHGDN_FORPARSING | SHGDN_INFOLDER);
	ASSERT_TRUE(SUCCEEDED(hr));

	EXPECT_STREQ(L"Metadata.jpg", szDisplayName);
}
开发者ID:3scp8,项目名称:explorerplusplus,代码行数:11,代码来源:TestShellHelper.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ GetDistance函数代码示例发布时间:2022-05-30
下一篇:
C++ GetDisplay函数代码示例发布时间: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