From 7aa5f0ef3ac5d0543e892e6b7861c6d95a57af82 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 22 Jul 2015 20:39:17 +0000 Subject: [PATCH] EgtInterface 1.6g6 : - aggiunta gestione UiUnits. --- API_UiUnits.cpp | 45 +++++++++++++++++++++++++++++++++++ EgtInterface.rc | Bin 11718 -> 11718 bytes EgtInterface.vcxproj | 1 + EgtInterface.vcxproj.filters | 3 +++ 4 files changed, 49 insertions(+) create mode 100644 API_UiUnits.cpp 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 dd91c675b03fba2a0c3ac4abb7709dc6ac09414f..d0e9d6f34f13ac397cb9b1f688d65f1ccd94d4db 100644 GIT binary patch delta 111 zcmX>WeJpyzFE&QA%^&$rGEF|hS;uHL`Jtfh<^rw;7OzIAO+TQQ4Xt~E@c}o08Rra&Hw-a delta 111 zcmX>WeJpyzFE&Qg%^&$rGEF|hS;uHP`Jtfh<^rw;7OzIAO+TQQ4Xt~E@c}o08AGs#sB~S 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 +