您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ GetHeadPosition函数代码示例

51自学网 2021-06-01 21:08:52
  C++
这篇教程C++ GetHeadPosition函数代码示例写得很实用,希望能帮到您。

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

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

示例1: GetHeadPosition

BOOL CNetworkAdapterList::SetIpAddrEntry(LONG lIfIndex, LPCTSTR lpstrIPAddr, LPCTSTR lpstrIPNetMask, LPCTSTR lpstrNetNumber){	CNetworkAdapter cAdapter;	POSITION	 pPosCur,				 pPosNext;	pPosNext = GetHeadPosition();	pPosCur = GetHeadPosition();	while (pPosNext != NULL)	{		cAdapter = GetNext( pPosNext);		if (cAdapter.GetIfIndex() == lIfIndex)		{			// That's the adapter to update			cAdapter.SetIPAddress( lpstrIPAddr);			cAdapter.SetIPNetMask( lpstrIPNetMask);			cAdapter.SetNetNumber( lpstrNetNumber );			SetAt( pPosCur, cAdapter);			return TRUE;		}		// Browse the next adapter and save the adapter position in the list		pPosCur = pPosNext;	}	return FALSE;}
开发者ID:GoGoogle,项目名称:WindowsAgent,代码行数:25,


示例2: assert

NEPointerList* NEPointerList::getElementsWithShortestDurationNotNull(){	assert(!empty());	NEPointerList* list=new NEPointerList;	GRNotationElement * e = NULL;	GuidoPos pos=GetHeadPosition();	TYPE_DURATION dur(INT_MAX,1);	while (pos)	  {	  e = GetNext(pos);	  if (e->getDuration() < dur		&& e->getDuration() > DURATION_0)		 dur = e->getDuration();	  }	pos = GetHeadPosition();	while (pos)	  {	  e = GetNext(pos);	  if (e->getDuration() == dur)		 {		 list->push_back(e);		 }	  }	return list;}
开发者ID:EQ4,项目名称:guido-engine,代码行数:25,


示例3: DeleteAllItems

void CXTPDockingPaneTabbedContainer::OnTabsChanged(){	if (!m_hWnd)		return;	m_nLockReposition += 1;	DeleteAllItems();	m_bCloseItemButton = GetDockingPaneManager()->m_bShowCloseTabButton;	POSITION pos = GetHeadPosition();	while (pos)	{		CXTPDockingPane* pPane = (CXTPDockingPane*)GetNext(pos);		CXTPTabManagerItem* pItem = AddItem(GetItemCount());		if (m_pSelectedPane == pPane) SetSelectedItem(pItem);		pItem->SetCaption(pPane->GetTabCaption());		pItem->SetColor(pPane->GetItemColor());		pItem->SetTooltip(pPane->GetTitle());		pItem->SetEnabled(pPane->GetEnabled() & xtpPaneEnableClient);		pItem->SetClosable((pPane->GetOptions() & xtpPaneNoCloseable) == 0);		pItem->SetData((DWORD_PTR)pPane);	}	//////////////////////////////////////////////////////////////////////////	m_pCaptionButtons->CheckForMouseOver(CPoint(-1, -1));	m_nLockReposition -= 1;}
开发者ID:lai3d,项目名称:ThisIsASoftRenderer,代码行数:33,


示例4: OnTabsChanged

void CXTPDockingPaneTabbedContainer::InvalidatePane(BOOL bSelectionChanged){	if (!GetSafeHwnd())		return;	if (m_pParentContainer == 0)		return;	if (m_nLockReposition)		return;	m_nLockReposition += 1;	OnTabsChanged();	m_nLockReposition -= 1;	CRect rect = m_rcWindow;	CXTPDockingPaneBase::GetPaintManager()->AdjustClientRect(this, rect, TRUE);	if (bSelectionChanged)	{		POSITION pos = GetHeadPosition();		while (pos)		{			CXTPDockingPane* pPane = (CXTPDockingPane*)GetNext(pos);			CRect rcPane = m_pSelectedPane == pPane ? rect : CRect(0, 0, 0, 0);			pPane->OnSizeParent(m_pDockingSite, rcPane, 0);		}	}	Invalidate(FALSE);	m_pParentContainer->InvalidatePane(bSelectionChanged);}
开发者ID:lai3d,项目名称:ThisIsASoftRenderer,代码行数:32,


示例5: AdjustMinMaxInfoClientRect

void CXTPDockingPaneTabbedContainer::GetMinMaxInfo(LPMINMAXINFO pMinMaxInfo) const{	CXTPDockingPaneBase::GetMinMaxInfo(pMinMaxInfo);	if (IsEmpty())		return;	if (IsPaneMinimized())	{		if (((CXTPDockingPaneSplitterContainer*)m_pParentContainer)->IsHoriz())			pMinMaxInfo->ptMaxTrackSize.x = 0;		else			pMinMaxInfo->ptMaxTrackSize.y = 0;		AdjustMinMaxInfoClientRect(pMinMaxInfo, FALSE);	}	else	{		POSITION pos = GetHeadPosition();		while (pos)		{			CXTPDockingPaneBase* pPane = GetNext(pos);			MINMAXINFO info;			pPane->GetMinMaxInfo(&info);			pMinMaxInfo->ptMinTrackSize.x = max(pMinMaxInfo->ptMinTrackSize.x, info.ptMinTrackSize.x);			pMinMaxInfo->ptMinTrackSize.y = max(pMinMaxInfo->ptMinTrackSize.y, info.ptMinTrackSize.y);			pMinMaxInfo->ptMaxTrackSize.x = min(pMinMaxInfo->ptMaxTrackSize.x, info.ptMaxTrackSize.x);			pMinMaxInfo->ptMaxTrackSize.y = min(pMinMaxInfo->ptMaxTrackSize.y, info.ptMaxTrackSize.y);		}		AdjustMinMaxInfoClientRect(pMinMaxInfo);	}}
开发者ID:lai3d,项目名称:ThisIsASoftRenderer,代码行数:35,


示例6: ASSERT_VALID

//// remove the single unit indicated by the dwID (with optional flag// to delete the actual object too)//void CAIUnitList::RemoveUnit( DWORD dwID, BOOL bObjectToo /*=TRUE*/ ){	ASSERT_VALID( this );	// no need to remove that which is not there	CAIUnit *pUnit = GetUnit( dwID );	if( pUnit == NULL )		return;    POSITION pos1, pos2;    for( pos1 = GetHeadPosition();         ( pos2 = pos1 ) != NULL; )    {        pUnit = (CAIUnit *)GetNext( pos1 );        if( pUnit != NULL )        {            ASSERT_VALID( pUnit );        	if( pUnit->GetID() != dwID )            	continue;        }        pUnit = (CAIUnit *)GetAt( pos2 );        if( pUnit != NULL )        {            ASSERT_VALID( pUnit );        	RemoveAt( pos2 );			if( bObjectToo )        		delete pUnit;        	break;        }    }}
开发者ID:Marenz,项目名称:EnemyNations,代码行数:38,


示例7: GetHeadPosition

//// count number of vehicle units which have the passed dwID in// their dwData, indicating this is unit assigned for repair// at that repair center//int CAIUnitList::GetRepairCount( int iPlayer, DWORD dwRepBldg ){	int iCount = 0;    POSITION pos = GetHeadPosition();    while( pos != NULL )    {           CAIUnit *pUnit = (CAIUnit *)GetNext( pos );        if( pUnit != NULL )        {#if 0 //THREADS_ENABLED			// BUGBUG this function must yield			myYieldThread();			//if( myYieldThread() == TM_QUIT )			//	throw(ERR_CAI_TM_QUIT); // THROW( pException );#endif        	ASSERT_VALID( pUnit );            if( pUnit->GetOwner() != iPlayer )                continue;            if( pUnit->GetType() != CUnit::vehicle )                continue;			// this vehicle is assigned to be repaired at the			// repair center passed in			if( pUnit->GetDataDW() == dwRepBldg )				iCount++;		}	}	return( iCount );}
开发者ID:Marenz,项目名称:EnemyNations,代码行数:35,


示例8: SetFirstRecord

//	1. Satz über seine Buchmarke akt.BOOL CPtrListExt :: SetFirstRecord (COleVariant varBookmark, const char *pAbfallArt/* = NULL*/){	if ((VT_EMPTY == varBookmark.vt) || IsEmpty ())		return FALSE;	BOOL bFound = FALSE;	POSITION pos = GetHeadPosition();	CRecordInfo *pInfo = NULL;	while (pos != NULL)	{		pInfo = (CRecordInfo *) GetNext(pos);		ASSERT (NULL != pInfo);					if (!bFound && (varBookmark == pInfo -> m_varBookMark))		{			bFound = TRUE;			pInfo -> m_bFirst = TRUE;					//	ggf. Art 
C++ GetHeader函数代码示例
C++ GetHead函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。