本文整理汇总了C++中TView::GetWindow方法的典型用法代码示例。如果您正苦于以下问题:C++ TView::GetWindow方法的具体用法?C++ TView::GetWindow怎么用?C++ TView::GetWindow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TView
的用法示例。
在下文中一共展示了TView::GetWindow方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: EvNewView
//////////////////////////////////////////////////////////
// mtlrchApp
// =====
// Response Table handlers:
//
void mtlrchApp::EvNewView (TView& view)
{
TMDIClient *mdiClient = TYPESAFE_DOWNCAST(GetMainWindow()->GetClientWindow(), TMDIClient);
if (mdiClient) {
mtlrchMDIChild* child = new mtlrchMDIChild(*mdiClient, 0, view.GetWindow());
// Associate ICON w/ this child window.
child->SetIcon(this, IDI_DOC);
child->Create();
}
}
示例2:
//
/// Force view title and index update.
//
void
TDocument::ReindexFrames()
{
TView* view;
int seq;
for (seq = -1, view = ViewList; view != 0; view = view->NextView) {
seq -= view->SetDocTitle(Title, seq); // decrement if title displayed
if (seq == -3) // need only check if more than one title displayed
break;
}
if (seq == -1)
return;
seq = (seq == -2 ? 0 : 1);
for (view = ViewList; view != 0; view = view->NextView)
{
//DLN: added this if condition to avoid PRECONDITIONs in debug build
// which occur if program closed by closing main window
if ( view->GetWindow() && view->GetWindow()->GetHandle() )
seq += view->SetDocTitle(Title, seq); // increment if title displayed
}
}