Скачиваний:
30
Добавлен:
01.05.2014
Размер:
1.57 Кб
Скачать
// KardanoDlg.h : header file
//

#pragma once
#include "afxcmn.h"
#include "StaticTable.h"
#include "KardanoSquare.h"
#include "afxwin.h"


// CKardanoDlg dialog
class CKardanoDlg : public CDialog
{
private:
   StaticTable table;
   int tableTop;
   KardanoSquare kardanoSquare;
   void UpdateTableView();
   CString ExtractTextLinesFromSquare();
   int rotation;
   void Encrypt(const CString &PlainText);
   void Decrypt(const CString &CryptText);
   CString ExtractText();

// Construction
public:
	CKardanoDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_KARDANO_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	DECLARE_MESSAGE_MAP()
public:
   CSpinButtonCtrl sizeSpin;
public:
   afx_msg void OnDeltaposSizeSpin(NMHDR *pNMHDR, LRESULT *pResult);
public:
   int size;
public:
   afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
public:
   afx_msg void OnBnClickedRegenerate();
public:
   afx_msg void OnEnChangeInput();
public:
   CEdit input;
public:
   CButton encryptButton;
public:
   CButton decryptButton;
public:
   afx_msg void OnBnClickedEncrypt();
public:
   afx_msg void OnBnClickedDecrypt();
public:
   CButton regenerateButton;
public:
   CButton rotateButton;
public:
   afx_msg void OnBnClickedRotate();
public:
   CEdit output;
};
Соседние файлы в папке Kardano