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

C++ GetNextView函数代码示例

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

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



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

示例1: LookupParser

BOOL CBonfireDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	m_xTextBuffer.InitNew();

	((CMainFrame*)AfxGetMainWnd())->m_wndProjectBar.LoadFile(this);

	// MAYBE PUT IN SETPATHNAME() LATER
	// set the syntax highlighting parser
	this->m_fnParse = LookupParser( NULL );

	// draw icon
	POSITION pos = GetFirstViewPosition();
	CChildFrame* pChild = (CChildFrame*)GetNextView(pos)->GetParentFrame();
	pChild->UpdateIcon("");

	UpdateTabs( NULL );

	// initialize the document title
	UpdateDocumentTitle( NULL );

	SwitchToFirstView();

	return TRUE;
}
开发者ID:Qeeet,项目名称:nz-software,代码行数:27,代码来源:BonfireDoc.cpp


示例2: GetFirstViewPosition

BOOL CFT2OpenCVDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	//get a pointer to the view object
	POSITION posV = GetFirstViewPosition();
	CFT2OpenCVView * view = (CFT2OpenCVView *) GetNextView(posV);
	ASSERT_VALID(view);
	if (!view) {
		AfxMessageBox(_T("Failed to get view!"));
		OnCloseDocument();
	}

	//start the kinect
	m_hWnd = view->GetParentFrame()->m_hWnd;
	m_FTHelper.Init(m_hWnd, FTHelperCallingBack, this);

	namedWindow("dxColor", WINDOW_AUTOSIZE);
	namedWindow("dxDepth", WINDOW_AUTOSIZE);



	return TRUE;
}
开发者ID:Malavos,项目名称:Kinect-2-Face-Tracking-v1-port-and-OpenCV,代码行数:25,代码来源:FT2OpenCVDoc.cpp


示例3: ASSERT_VALID

void COleDocument::OnIdle()
{
	ASSERT_VALID(this);

	// determine if any visible views are on this document
	BOOL bVisible = FALSE;
	POSITION pos = GetFirstViewPosition();
	while (pos != NULL)
	{
		CView* pView = GetNextView(pos);
		ENSURE_VALID(pView);
		CFrameWnd* pFrameWnd = pView->EnsureParentFrame();
		if (pFrameWnd->GetStyle() & WS_VISIBLE)
		{
			bVisible = TRUE;
			break;
		}
	}

	// when state has changed, call OnShowViews
	if (bVisible != m_bLastVisible)
	{
		OnShowViews(bVisible);
		m_bLastVisible = bVisible;
	}
}
开发者ID:jbeaurain,项目名称:omaha_vs2010,代码行数:26,代码来源:oledoc1.cpp


示例4: GetFirstViewPosition

BOOL CHtmlViewOWMDoc::OnOpenDocument(LPCTSTR lpszPathName) 
{
	//if (!CDocument::OnOpenDocument(lpszPathName))
	//	return FALSE;
	
	CString strURL = lpszPathName;

	CString strPath = lpszPathName;
	int posPot = strPath.ReverseFind('.');
	if(posPot > 0)
	{
		CString strExt = strPath.Right(strPath.GetLength() - posPot -1);
		strExt.MakeUpper();
		if(strExt == "BLP")
		{
			strURL = "tcl:<file>";
			strURL += lpszPathName;
		}
	}

	POSITION pos = GetFirstViewPosition();
	CHtmlViewOWMView* pView = (CHtmlViewOWMView*)GetNextView(pos);

	pView->Navigate2(strURL);

	return TRUE;
}
开发者ID:GFFavourite,项目名称:Script.NET,代码行数:27,代码来源:HtmlViewOWMDoc.cpp


示例5: GetFirstViewPosition

void CSpiroDoc::DeleteContents()
{
    INT_PTR nLast = m_arrPFigures.GetUpperBound();
    CFigure* pFig;

    POSITION pos = GetFirstViewPosition();
    CSpiroView* pView;

    if (pos != NULL)  // on shut down the view has been destroyed already
    {
        pView = (CSpiroView*)GetNextView(pos);
        ENSURE(pView != NULL && pView->IsKindOf(RUNTIME_CLASS(CSpiroView)));
        delete pView->m_pAnchor;
        delete pView->m_pWheel;
        pView->m_pAnchor = NULL;
        pView->m_pWheel = NULL;
    }

    for (int i = 0; i <= nLast; i++)
    {
        pFig = (CFigure*)m_arrPFigures.GetAt(i);
        delete pFig;
    }

    m_arrPFigures.RemoveAll();
    delete m_pFigureCurrent;
    m_pFigureCurrent = NULL;

    CDocument::DeleteContents();
}
开发者ID:jetlive,项目名称:skiaming,代码行数:30,代码来源:spiroDoc.cpp


示例6: CClientResource

void	 CPackageToolDoc::OnOpenGameResouce(CString strFolder)
{	
	m_nDisplayOriInfo = 2;
	if(m_pOriginResource)
	{
		m_pOriginResource->GetFilesInfo()->SetDisplayWnd(NULL);
		m_pOriginResource->Save();
	}

	if(m_pClientResource)
	{
		delete m_pClientResource;m_pClientResource=NULL;
	}
	
	string strTempt = strFolder;

	Packages TemptPackages;
	m_pClientResource = new CClientResource(GAME_RES,strTempt,TemptPackages,m_strFileInfoName);
	//装载客户端资源文件
	m_pClientResource->LoadEx();

	POSITION pos = GetFirstViewPosition();
	CView* pView = GetNextView(pos);
	if(pView)
	{
		//m_pClientResource->GetFilesInfo()->SetDisplayWnd(pView->m_hWnd);
		//m_pClientResource->GetFilesInfo()->UpdateAllInfoToView(NULL);
		m_pClientResource->GetFilesInfo()->UpdateAllInfoToViewEx(pView->m_hWnd);
	}
}
开发者ID:ueverything,项目名称:mmo-resourse,代码行数:30,代码来源:PackageToolDoc.cpp


示例7: GetNextView

void CMUSHclientDoc::CheckTickTimers ()
  {

  // timer has kicked in unexpectedly - ignore it
  if (m_CurrentPlugin)
    return;

  // check for selection change in command window
  // I know, this is a crappy way of doing it, but the CEditView does 
  // not notify of selection changes.

  for(POSITION commandpos=GetFirstViewPosition();commandpos!=NULL;)
    {
    CView* pView = GetNextView(commandpos);

    if (pView->IsKindOf(RUNTIME_CLASS(CSendView)))
      {
      CSendView* pmyView = (CSendView*)pView;

      pmyView->CheckForSelectionChange ();
      }	  // end of being a CSendView
    }

  SendToAllPluginCallbacks (ON_PLUGIN_TICK);

  } // end of CMUSHclientDoc::CheckTickTimers
开发者ID:RKelson93,项目名称:mushclient,代码行数:26,代码来源:timers.cpp


示例8: dlg

void CNuGenDimensionDoc::OnSTLImport()
{
	CString     Path;

	CFileDialog dlg(
		TRUE,
		NULL,               // Open File Dialog
		_T("*.stl"),              // Default extension
		OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, // No default filename
		_T("STL (*.stl)|*.stl||"));// Filter string

	if (dlg.DoModal() != IDOK)
		return;
	Path = dlg.GetPathName();

	GetDocTemplate()->OpenDocumentFile(NULL);

	sgFileManager::ImportSTL(sgGetScene(),Path.GetBuffer());

	POSITION pos = GetFirstViewPosition();
	while (pos != NULL)
	{
		CView* pView = GetNextView(pos);
		pView->OnInitialUpdate();
	}
	//AfxMessageBox("Sorry, its DEMO");
}
开发者ID:AnthonyNystrom,项目名称:GenXSource,代码行数:27,代码来源:NuGenDimensionDoc.cpp


示例9: GetFirstViewPosition

void CServerDoc::OnSetItemRects(LPCRECT lpPosRect, LPCRECT lpClipRect)
{
	// get first view of document
	POSITION pos = GetFirstViewPosition();
	ASSERT(pos != NULL);
	CServerView* pView = (CServerView*)GetNextView(pos);
	ASSERT_KINDOF(CServerView, pView);
	ASSERT_VALID(pView);

	CSize sizeNum(lpPosRect->right - lpPosRect->left,
		lpPosRect->bottom - lpPosRect->top);
	// for denom -- get extent in device
	// create a view dc
	CServerDC dc(pView);
	// set zoom to 100%
	dc.SetViewportExt(CSize(1,1));
	dc.SetWindowExt(CSize(1,1));
	// get extents in device
	CSize sizeDenom = pView->CalcActualItemSize(m_pRoot, &dc);

	// notify first view of potential zoom factor change!
	pView->SetZoomFactor(sizeNum, sizeDenom);
	// resize the window
	COleServerDoc::OnSetItemRects(lpPosRect, lpClipRect);
	// set scrollbar state (if necessary)
	pView->SetScrollInfo();
}
开发者ID:Jinjiego,项目名称:VCSamples,代码行数:27,代码来源:svrdoc.cpp


示例10: new_size

void CDrawDoc::ComputePageSize()
{
	CSize new_size(850, 1100);  // 8.5" x 11" default

	CPrintDialog dlg(FALSE);
	if (AfxGetApp()->GetPrinterDeviceDefaults(&dlg.m_pd))
	{
		// GetPrinterDC returns a HDC so attach it
		CDC dc;
		HDC hDC= dlg.CreatePrinterDC();
		ASSERT(hDC != NULL);
		dc.Attach(hDC);

		// Get the size of the page in loenglish
		new_size.cx = MulDiv(dc.GetDeviceCaps(HORZSIZE), 1000, 254);
		new_size.cy = MulDiv(dc.GetDeviceCaps(VERTSIZE), 1000, 254);
	}

	// if size changed then iterate over views and reset
	if (new_size != m_size)
	{
		m_size = new_size;
		POSITION pos = GetFirstViewPosition();
		while (pos != NULL)
			((CDrawView*)GetNextView(pos))->SetPageSize(m_size);
	}
}
开发者ID:Ireneph,项目名称:samples,代码行数:27,代码来源:drawdoc.cpp


示例11: GetFirstViewPosition

// **************************************************************************
// RouteCmdMsg ()
//
// Description:
//	Routes a message onto all inactive views or until one of the views 
//	processes the message.
//
// Parameters:
//	CView				*pActiveView	Pointer to the active view.
//	UINT				nID				Specifies the container for the 
//										  command identifier. 
//	int					nCode			Identifies the command notification
//										  code.
//	void				*pExtra			Used according to the value of 
//										  nCode.
//	AFX_CMDHANDLERINFO	*pHandlerInfo	If not NULL, OnCmdMsg fills in the
//										  pTarget and pmf members of the 
//										  pHandlerInfo structure instead of
//										  dispatching the command. Typically, 
//										  this parameter should be NULL.
//
// Returns:
//  BOOL - TRUE if message was processed.
// **************************************************************************
BOOL CKDocument::RouteCmdMsg (CView *pActiveView, UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)
	{
	// Get the position of the first view in the list of views associated
	// with this document:
	POSITION pos = GetFirstViewPosition ();

	// Exhaust all views.  When we get to end of list of views, pos will be NULL:
	while (pos != NULL)
		{
		// Get pointer to view at present POSITION (pos).  Function will
		// automatically reset pos to POSITION of next view, or NULL if 
		// end of list:
		CView *pNextView = GetNextView (pos);

		// By definition, we do no send message to active view:
		// (We shouldn't get called if active view processes the message.)
		if (pNextView != pActiveView)
			{
			// If the view processes the message then we are a success.  Return TRUE
			// to indicate message was processed:
			if (((CCmdTarget *) pNextView)->OnCmdMsg (nID, nCode, pExtra, pHandlerInfo))
				return (TRUE);
			}
		}

	// If we make it here, then message not processed.  Return FALSE to
	// indicate that message was not processed.
	return (FALSE);
	}
开发者ID:wfmdyh,项目名称:wecan,代码行数:53,代码来源:document.cpp


示例12: GetFirstViewPosition

CFracticeView *CFracticeDoc::GetView() const
{
	POSITION	pos = GetFirstViewPosition();
	CFracticeView	*View = DYNAMIC_DOWNCAST(CFracticeView, GetNextView(pos));
	ASSERT(View);
	return(View);
}
开发者ID:victimofleisure,项目名称:Fractice,代码行数:7,代码来源:FracticeDoc.cpp


示例13: SHBrowseForFolder

void CPhotoPubDoc::OnBnClickedWatch()
{
	char szDir[MAX_PATH];
	BROWSEINFO bi;
	ITEMIDLIST *pidl;
	bi.hwndOwner = NULL;
	bi.pidlRoot = NULL;
	bi.pszDisplayName = szDir;
	bi.lpszTitle = "请选择要监视的文件夹:";
	bi.ulFlags = BIF_RETURNONLYFSDIRS;
	bi.lpfn = NULL;
	bi.lParam = 0;
	bi.iImage = 0;
	pidl = SHBrowseForFolder(&bi);
	if(pidl == NULL)
		return;
	if(!SHGetPathFromIDList(pidl, szDir))
		return;
	CString SrcPath(szDir);

	POSITION pos=GetFirstViewPosition();
	CPhotoPubView* pView=(CPhotoPubView*) GetNextView(pos);
	if (!pView->SetupWatching(SrcPath))
		return;
	
	m_bWatching=true;
	((CMainFrame *)pView->GetParentFrame())->SetWatching(m_bWatching);
}
开发者ID:ysomebody,项目名称:photopub,代码行数:28,代码来源:PhotoPubDoc.cpp


示例14: GetStartPosition

void CABMOfficeSystemcppDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}

	// Calling the base class COleDocument enables serialization
	//  of the container document's COleClientItem objects.
	COleDocument::Serialize(ar);
	// activate the first one
	if (!ar.IsStoring())
	{
		POSITION posItem = GetStartPosition();
		if (posItem != NULL)
		{
			CDocItem* pItem = GetNextItem(posItem);
			POSITION posView = GetFirstViewPosition();
			COleDocObjectItem *pDocObjectItem = DYNAMIC_DOWNCAST(COleDocObjectItem, pItem);
			if (posView != NULL && pDocObjectItem != NULL)
			{
				CView* pView = GetNextView(posView);
				pDocObjectItem->DoVerb(OLEIVERB_SHOW, pView);
			}
		}
	}
}
开发者ID:abmadmin,项目名称:ABM-Office-System-Cpp,代码行数:31,代码来源:ABM-Office-System-cppDoc.cpp


示例15: GetFirstViewPosition

//当打开一个文件时调用
void CPackageToolDoc::OnOpenfolder(CString strFolder)
{
	if(strFolder == "")	return;
	if(m_nDisplayOriInfo == 1)
	{
		::AfxMessageBox("已打开原始资源信息!");
		return;
	}
	m_nDisplayOriInfo=1;

	m_strCurFolder = strFolder;

	if(m_pOriginResource)
	{
		delete m_pOriginResource;
	}

	POSITION pos = GetFirstViewPosition();
	CView* pView = GetNextView(pos);
	if(pView)
	{
		Packages TemptPackages;
		m_pOriginResource = new CClientResource(ORIGIN_RES,m_strCurFolder,TemptPackages,m_strFileInfoName,
			pView->m_hWnd);
		m_pOriginResource->LoadClientResource();
	}
}
开发者ID:ueverything,项目名称:mmo-resourse,代码行数:28,代码来源:PackageToolDoc.cpp


示例16: AfxMessageBox

void	CPackageToolDoc::OpenDefaultProject()
{

	if(m_nDisplayOriInfo == 1)
	{
		AfxMessageBox("已打开原始资源信息!");
		return;
	}
	m_nDisplayOriInfo=1;

	if(m_pOriginResource)
	{
		delete m_pOriginResource;
	}

	POSITION pos = GetFirstViewPosition();
	CView* pView = GetNextView(pos);
	if(pView)
	{
		Packages TemptPackages;
		m_pOriginResource = new CClientResource(ORIGIN_RES,m_strCurFolder,TemptPackages,m_strFileInfoName,pView->m_hWnd);
		CString strTempt2("");
		if(m_pOriginResource->Load()==false)
		{
			CString str;
			str.Format("没有信息文件,请重新打开该文件夹进行信息统计.");
			AfxMessageBox((LPCTSTR)str);
		}

	}
}
开发者ID:ueverything,项目名称:mmo-resourse,代码行数:31,代码来源:PackageToolDoc.cpp


示例17: ASSERT_VALID

BOOL CDocument::CanCloseFrame(CFrameWnd* pFrameArg)
	// permission to close all views using this frame
	//  (at least one of our views must be in this frame)
{
	ASSERT_VALID(pFrameArg);
	UNUSED(pFrameArg);   // unused in release builds

	POSITION pos = GetFirstViewPosition();
	while (pos != NULL)
	{
		CView* pView = GetNextView(pos);
		ASSERT_VALID(pView);
		CFrameWnd* pFrame = pView->GetParentFrame();
		// assume frameless views are ok to close
		if (pFrame != NULL)
		{
			// assumes 1 document per frame
			ASSERT_VALID(pFrame);
			if (pFrame->m_nWindow > 0)
				return TRUE;        // more than one frame refering to us
		}
	}

	// otherwise only one frame that we know about
	return SaveModified();
}
开发者ID:rickerliang,项目名称:OpenNT,代码行数:26,代码来源:doccore.cpp


示例18: GetFirstViewPosition

void CLlinesDoc::GetView()
{
				// Позиция первого Вида, связанного с Документом
	POSITION pos = GetFirstViewPosition();
				// Указатель на первый Вид из списка всех Видов Документа
	pView =(CLlinesView*) GetNextView(pos);
}
开发者ID:aandreas,项目名称:GLines,代码行数:7,代码来源:LlinesDoc.cpp


示例19: StartNewLine

void CMUSHclientDoc::NoteHr() 
{
  // wrap up previous line if necessary
  if (m_pCurrentLine->len > 0)
     StartNewLine (true, 0);

  // mark line as HR line
  m_pCurrentLine->flags = HORIZ_RULE;
  
  StartNewLine (true, 0); // now finish this line

  // refresh views

  for(POSITION pos=GetFirstViewPosition();pos!=NULL;)
	  {
	  CView* pView = GetNextView(pos);
	  
	  if (pView->IsKindOf(RUNTIME_CLASS(CMUSHView)))
  	  {
		  CMUSHView* pmyView = (CMUSHView*)pView;

		  pmyView->addedstuff();
	    }	
    }

}  // end of CMUSHclientDoc::NoteHr
开发者ID:clodeku,项目名称:mushclient,代码行数:26,代码来源:methods_noting.cpp


示例20: GetFirstViewPosition

void 
CTimeSliceDoc::initAllViews()
{
   POSITION	     pos = GetFirstViewPosition();
   CTimeSliceView*   pView = NULL;

   unsigned int   uiCameraToView = 0;
   
   while ( pos != NULL )
   {
      pView = (CTimeSliceView*)GetNextView( pos );
      
      if( uiCameraToView >= m_uiNumCameras )
      {
	 //
	 // Special case - the last view is the panning view.
	 //
	 pView->setViewType( PANNING );	    
      }
      else
      {
	 pView->setCamera( uiCameraToView );
	 pView->setViewType( SINGLE_CAMERA );
      }
      
      uiCameraToView++;
   }  
}
开发者ID:PrincetonPAVE,项目名称:old_igvc,代码行数:28,代码来源:timeSliceDoc.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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