EgtInterface 1.6t2 :
- aggiunte EgtSetInfoBool, EgtGetInfoBool.
This commit is contained in:
+23
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user