KeyGenerator 2.1e1 :

- le Opzioni2 sono state portate da 16 a 24.
This commit is contained in:
Dario Sassi
2019-05-09 06:30:13 +00:00
parent e6ea9b2ccd
commit dacd846357
3 changed files with 5 additions and 5 deletions
BIN
View File
Binary file not shown.
+5 -5
View File
@@ -1,13 +1,13 @@
//----------------------------------------------------------------------------
// EgalTech 2013-2014
// EgalTech 2013-2019
//----------------------------------------------------------------------------
// File : KeyGeneratorDlg.cpp Data : 11.09.14 Versione : 1.5i2
// File : KeyGeneratorDlg.cpp Data : 08.05.19 Versione : 2.1e1
// Contenuto : Implementazione della classe dialogo generatore chiavi.
//
//
//
// Modifiche : 11.09.14 DS Creazione modulo.
//
// 08.05.19 DS Portate Opzioni2 a 24.
//
//----------------------------------------------------------------------------
@@ -303,7 +303,7 @@ CKeyGeneratorDlg::LoadFile( const char* szFile)
((CButton*)GetDlgItem( i))->SetCheck( BST_UNCHECKED) ;
}
int nOpt2 = GetPrivateProfileInt( sSec.c_str(), "Opt2", 0, szFile) ;
for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_16 ; ++ i, ++ j) {
for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_24 ; ++ i, ++ j) {
if ( ( nOpt2 & ( 1 << j)) != 0)
((CButton*)GetDlgItem( i))->SetCheck( BST_CHECKED) ;
else
@@ -382,7 +382,7 @@ CKeyGeneratorDlg::OnGenerate( void)
nOpt1 += ( 1 << j) ;
}
unsigned int nOpt2 = 0 ;
for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_16 ; ++ i, ++ j) {
for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_24 ; ++ i, ++ j) {
if ( ((CButton*)GetDlgItem( i))->GetCheck() == BST_CHECKED)
nOpt2 += ( 1 << j) ;
}
BIN
View File
Binary file not shown.