Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
RSEnalotto 1.0 - SuperenalottoDlg.h

SuperenalottoDlg.h

Caricato da: Piero Tofy
Scarica il programma completo

  1. // SuperenalottoDlg.h : header file
  2. //
  3.  
  4. #if !defined(AFX_SUPERENALOTTODLG_H__9C7FA285_F695_11D8_8761_004F4E11B449__INCLUDED_)
  5. #define AFX_SUPERENALOTTODLG_H__9C7FA285_F695_11D8_8761_004F4E11B449__INCLUDED_
  6.  
  7. #include "Sestine.h"    // Added by ClassView
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. static UINT CreateArchivioThread(LPVOID pParam);
  13. static UINT CreateSistemaThread(LPVOID pParam);
  14. static UINT CreateExportThread(LPVOID pParam);
  15. static UINT CreateEstrazioneThread(LPVOID pParam);
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CSuperenalottoDlg dialog
  19.  
  20. class CSuperenalottoDlg : public CDialog
  21. {
  22. // Construction
  23. public:
  24.         void ConfrontaEstrazione();
  25.         int i_EstrazioneNumbers[7];
  26.         void InitMaxSistemaNumbers();
  27.         int i_SistemaLines;
  28.         int i_ArchivioLines;
  29.         CString s_ExportFileName;
  30.         CString s_ExportPath;
  31.         int i_CountScExport;
  32.         int i_MaxSistemaNumbers[7]; //Era 7
  33.         int i_MaxArchivioNumbers[6];
  34.         int i_MaxEstrazioneNumbers[7];
  35.         bool b_is_checked[6];
  36.         bool b_SistemaFileSelected;
  37.         bool b_SistemaIsLoaded;
  38.         bool b_ArchivioIsLoaded;
  39.         bool b_ArchivioFileSelected;
  40.         CString s_SistemaFileName;
  41.         CString s_ArchivioFileName;
  42.         int i_CountScSistema;
  43.         Sestina sc_Archivio[8000];
  44.         int i_CountScArchivio;
  45.         void GetArchivio();
  46.         void ConfrontaArchivio();
  47.         void ViewArchivio();
  48.         void GetSistema();
  49.         void ViewSistema();
  50.         void WriteExport();
  51.         void ViewEstrazione();
  52.         void ShowStatus(CString s_Status);
  53.         CSuperenalottoDlg(CWnd* pParent = NULL);        // standard constructor
  54.  
  55. // Dialog Data
  56.         //{{AFX_DATA(CSuperenalottoDlg)
  57.         enum { IDD = IDD_SUPERENALOTTO_DIALOG };
  58.         CProgressCtrl   m_cPsbar;
  59.         CString s_SistemaPath;
  60.         CString s_ArchivioPath;
  61.         BOOL    m_bChk0;
  62.         BOOL    m_bChk1;
  63.         BOOL    m_bChk2;
  64.         BOOL    m_bChk3;
  65.         BOOL    m_bChk4;
  66.         BOOL    m_bChk5;
  67.         BOOL    m_bChk6;
  68.         //}}AFX_DATA
  69.  
  70.         // ClassWizard generated virtual function overrides
  71.         //{{AFX_VIRTUAL(CSuperenalottoDlg)
  72.         protected:
  73.         virtual void DoDataExchange(CDataExchange* pDX);        // DDX/DDV support
  74.         //}}AFX_VIRTUAL
  75.  
  76. // Implementation
  77. protected:
  78.         void UnCheckAll();
  79.         int ConfrontaSestine(Sestina *sc1, Sestina *sc2, int i_Jolly);
  80.         void ControllaNumero(int CURCONTROL, int NEXTCONTROL, int i_Number);
  81.         void InitMaxArchivioNumbers();
  82.         void SetProgressBar(int i_Value);
  83.         int GetFileLines(CString s_Path);
  84.         bool SetExportPath();
  85.         void SubExportCount(int i_Number);
  86.         void AddExportCount(int i_Number);
  87.         void ViewExportCount();
  88.         int ConfrontaSestine(Sestina *sc1, Sestina *sc2);
  89.         bool File_Exists(CString s_Path);
  90.         CString GetProgramDir();
  91.         HICON m_hIcon;
  92.  
  93.         // Generated message map functions
  94.         //{{AFX_MSG(CSuperenalottoDlg)
  95.         virtual BOOL OnInitDialog();
  96.         afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  97.         afx_msg void OnPaint();
  98.         afx_msg HCURSOR OnQueryDragIcon();
  99.         afx_msg void OnFileExit();
  100.         afx_msg void OnBiarchivio();
  101.         afx_msg void OnBiSistema();
  102.         afx_msg void OnBlSistema();
  103.         afx_msg void OnBlarchivio();
  104.         afx_msg void OnChk3();
  105.         afx_msg void OnChk0();
  106.         afx_msg void OnChk1();
  107.         afx_msg void OnChk2();
  108.         afx_msg void OnChk4();
  109.         afx_msg void OnChk5();
  110.         afx_msg void OnChk6();
  111.         afx_msg void OnBsexport();
  112.         afx_msg void OnUpdateEe0();
  113.         afx_msg void OnUpdateEe1();
  114.         afx_msg void OnUpdateEe2();
  115.         afx_msg void OnUpdateEe3();
  116.         afx_msg void OnUpdateEe4();
  117.         afx_msg void OnUpdateEe5();
  118.         afx_msg void OnUpdateEe6();
  119.         afx_msg void OnBesegui();
  120.         afx_msg void OnInfoAbout();
  121.         //}}AFX_MSG
  122.         DECLARE_MESSAGE_MAP()
  123. };
  124.  
  125. //{{AFX_INSERT_LOCATION}}
  126. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  127.  
  128. #endif // !defined(AFX_SUPERENALOTTODLG_H__9C7FA285_F695_11D8_8761_004F4E11B449__INCLUDED_)