本文整理汇总了C++中LPIDENT::GetCell方法的典型用法代码示例。如果您正苦于以下问题:C++ LPIDENT::GetCell方法的具体用法?C++ LPIDENT::GetCell怎么用?C++ LPIDENT::GetCell使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LPIDENT
的用法示例。
在下文中一共展示了LPIDENT::GetCell方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DispatchNotification_MainThread
void DispatchNotification_MainThread (NOTIFYEVENT evt, PNOTIFYPARAMS pParams)
{
LPIDENT lpiEvt = pParams->lpi1;
// There are several notifications which are sent when beginning or ending
// lengthy operations. These "actions" each get a window indicating
// progress, and get added to our ongoing list of actions-in-progress.
//
ActionNotification_MainThread (evt, pParams);
// The real reason for this routine is as a dispatcher for the AFSClass's
// notifications: various windows throughout the app register themselves
// with this dispatcher, and thereby get a message whenever a particular
// event of interest to that window happens. Just what notifications
// are "of interest" is specified by the window when it registers with
// this dispatcher.
//
for (size_t iDispatch = 0; iDispatch < nDispatchList; ++iDispatch)
{
if (!aDispatchList[ iDispatch ].hWnd)
continue;
BOOL fDispatch = FALSE;
// WHEN_CELL_OPENED + NULL -> notify if any new cell is opened
// WHEN_OBJECT_CHANGES + NULL -> notify if anything at all changes
// WHEN_OBJECT_CHANGES + lpi -> notify if this object changes
// WHEN_SVCS(etc)_CHANGE + NULL -> notify if any service at all changes
// WHEN_SVCS(etc)_CHANGE + lpi -> notify if any svc on this svr changes
switch (aDispatchList[ iDispatch ].when)
{
case WHEN_CELL_OPENED:
if (evt == evtCreate && lpiEvt->fIsCell())
fDispatch = TRUE;
break;
case WHEN_OBJECT_CHANGES:
if ( (aDispatchList[ iDispatch ].lpiObject == lpiEvt) ||
(aDispatchList[ iDispatch ].lpiObject == NULL) )
{
if (evt != evtCreate)
fDispatch = TRUE;
}
break;
case WHEN_SVRS_CHANGE:
switch (evt)
{
case evtInvalidate:
case evtRefreshServersBegin:
case evtRefreshServersEnd:
if ( (lpiEvt && lpiEvt->fIsCell()) ||
(aDispatchList[ iDispatch ].lpiObject == lpiEvt) ||
(aDispatchList[ iDispatch ].lpiObject == NULL) )
{
if (lpiEvt && lpiEvt->fIsCell())
fDispatch = TRUE;
}
break;
case evtCreate:
case evtDestroy:
case evtRefreshStatusBegin:
case evtRefreshStatusEnd:
case evtAlertsChanged:
if (lpiEvt && lpiEvt->fIsServer())
{
if (aDispatchList[ iDispatch ].lpiObject == NULL)
fDispatch = TRUE;
else
{
LPIDENT lpiEvtCell = lpiEvt->GetCell();
if (aDispatchList[ iDispatch ].lpiObject == lpiEvtCell)
fDispatch = TRUE;
}
}
break;
}
break;
case WHEN_SETS_CHANGE:
switch (evt)
{
case evtInvalidate:
case evtRefreshFilesetsBegin:
case evtRefreshFilesetsEnd:
{
LPIDENT lpiEvtSvr = NULL;
if (lpiEvt && !lpiEvt->fIsCell())
lpiEvtSvr = lpiEvt->GetServer();
if ( (lpiEvt && lpiEvt->fIsCell()) ||
(aDispatchList[ iDispatch ].lpiObject == lpiEvt) ||
(aDispatchList[ iDispatch ].lpiObject == lpiEvtSvr) ||
(aDispatchList[ iDispatch ].lpiObject == NULL) )
{
if (lpiEvt && (lpiEvt->fIsCell() || lpiEvt->fIsServer() || lpiEvt->fIsAggregate()))
fDispatch = TRUE;
//.........这里部分代码省略.........