本文整理汇总了C++中TaskManager::IsTargetProgramLast方法的典型用法代码示例。如果您正苦于以下问题:C++ TaskManager::IsTargetProgramLast方法的具体用法?C++ TaskManager::IsTargetProgramLast怎么用?C++ TaskManager::IsTargetProgramLast使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TaskManager
的用法示例。
在下文中一共展示了TaskManager::IsTargetProgramLast方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FileCopier_ReSetTargetProgram
static bool FileCopier_ReSetTargetProgram ( int pid )
{
TaskManager *tm = game->GetInterface ()->GetTaskManager ();
if ( tm->IsTargetProgramLast ( pid ) ) {
char stitle [128];
char sborder [128];
char sprogress [128];
char sclose [128];
UplinkSnprintf ( stitle, sizeof ( stitle ), "filecopier_title %d", pid );
UplinkSnprintf ( sborder, sizeof ( sborder ), "filecopier_border %d", pid );
UplinkSnprintf ( sprogress, sizeof ( sprogress ), "filecopier_progress %d", pid );
UplinkSnprintf ( sclose, sizeof ( sclose ), "filecopier_close %d", pid );
int animationid;
if ( ( animationid = EclIsNoCaptionChangeActive( stitle ) ) != -1 )
EclRemoveAnimation ( animationid );
if ( ( animationid = EclIsNoCaptionChangeActive( sborder ) ) != -1 )
EclRemoveAnimation ( animationid );
if ( ( animationid = EclIsNoCaptionChangeActive( sprogress ) ) != -1 )
EclRemoveAnimation ( animationid );
if ( ( animationid = EclIsNoCaptionChangeActive( sclose ) ) != -1 )
EclRemoveAnimation ( animationid );
tm->SetTargetProgram ( pid );
return true;
}
return false;
}