// SuperenalottoDlg.h : header file
//
#if !defined(AFX_SUPERENALOTTODLG_H__9C7FA285_F695_11D8_8761_004F4E11B449__INCLUDED_)
#define AFX_SUPERENALOTTODLG_H__9C7FA285_F695_11D8_8761_004F4E11B449__INCLUDED_
#include "Sestine.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
static UINT CreateArchivioThread(LPVOID pParam);
static UINT CreateSistemaThread(LPVOID pParam);
static UINT CreateExportThread(LPVOID pParam);
static UINT CreateEstrazioneThread(LPVOID pParam);
/////////////////////////////////////////////////////////////////////////////
// CSuperenalottoDlg dialog
class CSuperenalottoDlg : public CDialog
{
// Construction
public:
void ConfrontaEstrazione();
int i_EstrazioneNumbers[7];
void InitMaxSistemaNumbers();
int i_SistemaLines;
int i_ArchivioLines;
CString s_ExportFileName;
CString s_ExportPath;
int i_CountScExport;
int i_MaxSistemaNumbers[7]; //Era 7
int i_MaxArchivioNumbers[6];
int i_MaxEstrazioneNumbers[7];
bool b_is_checked[6];
bool b_SistemaFileSelected;
bool b_SistemaIsLoaded;
bool b_ArchivioIsLoaded;
bool b_ArchivioFileSelected;
CString s_SistemaFileName;
CString s_ArchivioFileName;
int i_CountScSistema;
Sestina sc_Archivio[8000];
int i_CountScArchivio;
void GetArchivio();
void ConfrontaArchivio();
void ViewArchivio();
void GetSistema();
void ViewSistema();
void WriteExport();
void ViewEstrazione();
void ShowStatus(CString s_Status);
CSuperenalottoDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSuperenalottoDlg)
enum { IDD = IDD_SUPERENALOTTO_DIALOG };
CProgressCtrl m_cPsbar;
CString s_SistemaPath;
CString s_ArchivioPath;
BOOL m_bChk0;
BOOL m_bChk1;
BOOL m_bChk2;
BOOL m_bChk3;
BOOL m_bChk4;
BOOL m_bChk5;
BOOL m_bChk6;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSuperenalottoDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void UnCheckAll();
int ConfrontaSestine(Sestina *sc1, Sestina *sc2, int i_Jolly);
void ControllaNumero(int CURCONTROL, int NEXTCONTROL, int i_Number);
void InitMaxArchivioNumbers();
void SetProgressBar(int i_Value);
int GetFileLines(CString s_Path);
bool SetExportPath();
void SubExportCount(int i_Number);
void AddExportCount(int i_Number);
void ViewExportCount();
int ConfrontaSestine(Sestina *sc1, Sestina *sc2);
bool File_Exists(CString s_Path);
CString GetProgramDir();
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSuperenalottoDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnFileExit();
afx_msg void OnBiarchivio();
afx_msg void OnBiSistema();
afx_msg void OnBlSistema();
afx_msg void OnBlarchivio();
afx_msg void OnChk3();
afx_msg void OnChk0();
afx_msg void OnChk1();
afx_msg void OnChk2();
afx_msg void OnChk4();
afx_msg void OnChk5();
afx_msg void OnChk6();
afx_msg void OnBsexport();
afx_msg void OnUpdateEe0();
afx_msg void OnUpdateEe1();
afx_msg void OnUpdateEe2();
afx_msg void OnUpdateEe3();
afx_msg void OnUpdateEe4();
afx_msg void OnUpdateEe5();
afx_msg void OnUpdateEe6();
afx_msg void OnBesegui();
afx_msg void OnInfoAbout();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SUPERENALOTTODLG_H__9C7FA285_F695_11D8_8761_004F4E11B449__INCLUDED_)