本文整理汇总了C++中CDesignType::FireOnGlobalDockPaneInit方法的典型用法代码示例。如果您正苦于以下问题:C++ CDesignType::FireOnGlobalDockPaneInit方法的具体用法?C++ CDesignType::FireOnGlobalDockPaneInit怎么用?C++ CDesignType::FireOnGlobalDockPaneInit使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDesignType
的用法示例。
在下文中一共展示了CDesignType::FireOnGlobalDockPaneInit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FireOnGlobalPaneInit
void CDesignCollection::FireOnGlobalPaneInit (void *pScreen, CDesignType *pRoot, const CString &sScreen, const CString &sPane)
// FireOnGlobalPaneInit
//
// Give other design types a way to override screens
{
int i;
CString sError;
// Generate a screen UNID that contains both the screen UNID and a local screen
CString sScreenUNID = CDockScreenType::GetStringUNID(pRoot, sScreen);
DWORD dwRootUNID = (pRoot ? pRoot->GetUNID() : 0);
// Fire all events
for (i = 0; i < m_EventsCache[evtOnGlobalDockPaneInit]->GetCount(); i++)
{
SEventHandlerDesc Event;
CDesignType *pType = m_EventsCache[evtOnGlobalDockPaneInit]->GetEntry(i, &Event);
if (pType->FireOnGlobalDockPaneInit(Event,
pScreen,
dwRootUNID,
sScreenUNID,
sPane,
&sError) != NOERROR)
kernelDebugLogMessage("%s", sError.GetASCIIZPointer());
}
}