EgtInterface 1.6t2 :

- aggiunte EgtSetInfoBool, EgtGetInfoBool.
This commit is contained in:
Dario Sassi
2016-08-06 19:17:41 +00:00
parent 863af59651
commit 2a149990be
5 changed files with 27 additions and 5 deletions
+23 -1
View File
@@ -159,7 +159,7 @@ __stdcall EgtSetColor( int nId, const int ObjCol[4], BOOL bSetAlpha)
// sistemo il colore
Color cCol( ObjCol) ;
// eseguo
return ( ExeSetColor( vIds, cCol, (bSetAlpha != FALSE)) ? TRUE : FALSE) ;
return ( ExeSetColor( vIds, cCol, ( bSetAlpha != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
@@ -259,6 +259,13 @@ __stdcall EgtSetInfo( int nId, const wchar_t* wsKey, const wchar_t* wsInfo)
return ( ExeSetInfo( nId, wstrztoA( wsKey), string( wstrztoA( wsInfo))) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetInfoBool( int nId, const wchar_t* wsKey, BOOL bInfo)
{
return ( ExeSetInfo( nId, wstrztoA( wsKey), ( bInfo != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetInfoInt( int nId, const wchar_t* wsKey, int nInfo)
@@ -297,6 +304,21 @@ __stdcall EgtGetInfo( int nId, const wchar_t* wsKey, wchar_t*& wsInfo)
return (( wsInfo == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetInfoBool( int nId, const wchar_t* wsKey, BOOL* pbInfo)
{
// verifico il parametro
if ( pbInfo == nullptr)
return FALSE ;
// recupero info
bool bInfo ;
if ( ! ExeGetInfo( nId, wstrztoA( wsKey), bInfo))
return FALSE ;
*pbInfo = ( bInfo ? TRUE : FALSE) ;
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetInfoInt( int nId, const wchar_t* wsKey, int* pnInfo)
+1 -1
View File
@@ -31,7 +31,7 @@ __stdcall EgtLuaCreateGlobTable( const wchar_t* wsVar)
BOOL
__stdcall EgtLuaSetGlobBoolVar( const wchar_t* wsVar, BOOL bVal)
{
return ( ExeLuaSetGlobBoolVar( wstrztoA( wsVar), ( bVal != FALSE ? true : false)) ? TRUE : FALSE) ;
return ( ExeLuaSetGlobBoolVar( wstrztoA( wsVar), ( bVal != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
+2 -2
View File
@@ -906,7 +906,7 @@ __stdcall EgtSetAllOperationsMode( BOOL bActive)
BOOL
__stdcall EgtSetOperationStatus( int nId, BOOL bShow)
{
return ( ExeSetOperationStatus( nId, bShow != FALSE) ? TRUE : FALSE) ;
return ( ExeSetOperationStatus( nId, ( bShow != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
@@ -953,7 +953,7 @@ __stdcall EgtGetPhaseDisposition( int nPhase)
BOOL
__stdcall EgtSpecialApplyDisposition( int nId, BOOL bRecalc)
{
return ( ExeSpecialApplyDisposition( nId, bRecalc != FALSE) ? TRUE : FALSE) ;
return ( ExeSpecialApplyDisposition( nId, ( bRecalc != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
+1 -1
View File
@@ -45,7 +45,7 @@ BOOL
__stdcall EgtPackBox( int nId, double dXmin, double dYmin,
double dXmax, double dYmax, double dOffs, BOOL bBottomUp)
{
return ( ExePackBox( nId, dXmin, dYmin, dXmax, dYmax, dOffs, bBottomUp != FALSE) ? TRUE : FALSE) ;
return ( ExePackBox( nId, dXmin, dYmin, dXmax, dYmax, dOffs, ( bBottomUp != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BIN
View File
Binary file not shown.