diff --git a/API_UiUnits.cpp b/API_UiUnits.cpp new file mode 100644 index 0000000..770adcb --- /dev/null +++ b/API_UiUnits.cpp @@ -0,0 +1,45 @@ +//---------------------------------------------------------------------------- +// EgalTech 2015-2015 +//---------------------------------------------------------------------------- +// File : API_UiUnits.cpp Data : 21.07.15 Versione : 1.6g6 +// Contenuto : Funzioni per gestione unità di misura per interfaccia utente. +// +// +// +// Modifiche : 21.07.15 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +//--------------------------- Include ---------------------------------------- +#include "stdafx.h" +#include "/EgtDev/Include/EInAPI.h" +#include "/EgtDev/Include/EXeExecutor.h" + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSetUiUnits( BOOL bMM) +{ + return ( ExeSetUiUnits( bMM != FALSE) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtUiUnitsAreMM( void) +{ + return ( ExeUiUnitsAreMM() ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +double +__stdcall EgtFromUiUnits( double dVal) +{ + return ExeFromUiUnits( dVal) ; +} + +//----------------------------------------------------------------------------- +double +__stdcall EgtToUiUnits( double dVal) +{ + return ExeToUiUnits( dVal) ; +} diff --git a/EgtInterface.rc b/EgtInterface.rc index dd91c67..d0e9d6f 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ diff --git a/EgtInterface.vcxproj b/EgtInterface.vcxproj index 90332a5..da2381d 100644 --- a/EgtInterface.vcxproj +++ b/EgtInterface.vcxproj @@ -231,6 +231,7 @@ copy $(TargetPath) \EgtProg\Dll64 + Create diff --git a/EgtInterface.vcxproj.filters b/EgtInterface.vcxproj.filters index cbfa9b6..ece4db2 100644 --- a/EgtInterface.vcxproj.filters +++ b/EgtInterface.vcxproj.filters @@ -110,6 +110,9 @@ File di origine\API + + File di origine\API +