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)