| 字词 | CDocument::GetFirstViewPosition |
| 释义 | CDocument::GetFirstViewPosition virtual POSITION GetFirstViewPosition() const; 返回值: 返回POSITION值,它用于GetNextView成员函数的迭代。 说明: 调用该函数获得与文档相关的视图列表中的第一个视图。 示例: // To get the first view in the list of views: POSITION pos = GetFirstViewPositon (); CView* pFirstView = GetNextView( pos ); // This example uses CDocument::GetFirstViewPosition // and GetNextView to repaint each view. void CMyDoc::OnRepaintAllViews() { POSITION pos = GetFirstViewPosition(); while (pos != NULL) { CView* pView = GetNextView(pos); pView->UpdateWindow(); } } // An easier way to accomplish the same result is to call // UpdateAllViews(NULL); 请参阅:CDocument::GetNextView |
| 随便看 |
|
计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。