本文整理汇总了C++中IParamBlock2::GetTimeValue方法的典型用法代码示例。如果您正苦于以下问题:C++ IParamBlock2::GetTimeValue方法的具体用法?C++ IParamBlock2::GetTimeValue怎么用?C++ IParamBlock2::GetTimeValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IParamBlock2
的用法示例。
在下文中一共展示了IParamBlock2::GetTimeValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DlgProc
//+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>+
//| custom UI update for SplitByAmount Test |
//+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>+
BOOL TestSplitByAmountDlgProc::DlgProc(TimeValue t, IParamMap2 *map, HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
IParamBlock2* pblock;
switch (msg)
{
case WM_INITDIALOG:
// Send the message to notify the initialization of dialog
pblock = (map != NULL) ? map->GetParamBlock() : NULL;
if (pblock) pblock->NotifyDependents( FOREVER, (PartID)map, kSplitByAmount_RefMsg_InitDlg );
break;
case WM_DESTROY:
break;
case WM_COMMAND:
pblock = (map != NULL) ? map->GetParamBlock() : NULL;
switch ( LOWORD( wParam ) )
{
case IDC_NEW:
if (pblock) pblock->NotifyDependents( FOREVER, PART_OBJ, kSplitByAmount_RefMsg_NewRand );
break;
case kSplitByAmount_message_type:
if (pblock) UpdateTypeDlg( hWnd, pblock->GetTimeValue(kSplitByAmount_testType, t) );
break;
}
}
return FALSE;
}
示例2: DlgProc
//+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>+
//| custom UI update for Duration Test |
//+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>+
INT_PTR TestGoToRotationDlgProc::DlgProc(TimeValue t, IParamMap2 *map, HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg)
{
IParamBlock2* pblock;
case WM_INITDIALOG:
// Send the message to notify the initialization of dialog
map->GetParamBlock()->NotifyDependents( FOREVER, (PartID)map, kGoToRotation_RefMsg_InitDlg );
break;
case WM_COMMAND:
pblock = map->GetParamBlock();
switch (LOWORD(wParam))
{
case IDC_NEW:
if (pblock)
pblock->NotifyDependents(FOREVER, PART_OBJ, kGoToRotation_RefMsg_NewRand);
return TRUE;
case kGoToRotation_message_sync:
if (pblock)
UpdateSyncDlg( hWnd, pblock->GetInt(kGoToRotation_syncBy,t) );
break;
case kGoToRotation_message_variation:
if (pblock)
UpdateVariationDlg( hWnd, pblock->GetTimeValue(kGoToRotation_variation,t),
pblock->GetFloat(kGoToRotation_spinVariation,t) );
break;
case kGoToRotation_message_match:
if (pblock)
UpdateMatchDlg( hWnd, pblock->GetInt(kGoToRotation_matchSpin,t) );
break;
}
break;
}
return FALSE;
}