EgtInterface 1.6s4 :
- aggiunte in interfaccia EgtSetMachiningParamBool e EgtGetMachiningParamBool.
This commit is contained in:
@@ -937,6 +937,13 @@ __stdcall EgtGetCurrMachining( void)
|
||||
return ExeGetCurrMachining() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetMachiningParamBool( int nType, BOOL bVal)
|
||||
{
|
||||
return ( ExeSetMachiningParam( nType, ( bVal != FALSE)) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetMachiningParamInt( int nType, int nVal)
|
||||
@@ -986,6 +993,19 @@ __stdcall EgtApplyMachining( BOOL bRecalc)
|
||||
return ( ExeApplyMachining( bRecalc != FALSE) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetMachiningParamBool( int nType, BOOL* pbVal)
|
||||
{
|
||||
if ( pbVal == nullptr)
|
||||
return FALSE ;
|
||||
bool bVal ;
|
||||
if ( ! ExeGetMachiningParam( nType, bVal))
|
||||
return FALSE ;
|
||||
*pbVal = bVal ;
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetMachiningParamInt( int nType, int* pnVal)
|
||||
|
||||
Reference in New Issue
Block a user