void DoDataExchange (CDataExchange * pDX);// DDX/DDV support
//}} AFX_VIRTUAL
В
// Implementation
protected:
// Generated message map functions
// {{AFX_MSG (CSetting)
virtual void OnOK ();
void CSetting :: OnMyEdit ();
void CSetting :: OnMyEdit1 ();
В
virtual BOOL OnInitDialog ();
//}} AFX_MSG
DECLARE_MESSAGE_MAP ()
};
В
// {{AFX_INSERT_LOCATION}}
// Microsoft Visual C + + will insert additional declarations immediately before the previous line.
В
# endif// ! Defined (AFX_SETTING_H__23ABDE52_3A69_456A_A9DC_23A586A6699A__INCLUDED_)
В
// Setting.cpp: implementation file
# include "stdafx.h"
# include "Kurs_Lipin.h"
# include "Setting.h"
# include "Kurs_Lipin.h"
# include "Kurs_LipinDlg.h"
В
# ifdef _DEBUG
# define new DEBUG_NEW
# undef THIS_FILE
static char THIS_FILE [] = __ FILE__;
# endif
В
//////////////////////////////////////////// /////////////////////////////////
// CSetting dialog
В
CSetting :: CSetting (CKurs_LipinDlg * pParent)
: CDialog (CSetting :: IDD, pParent)
{
f_start = false;
parent = pParent;
// {{AFX_DATA_INIT (CSetting)
// NOTE: the ClassWizard will add member initialization here
//}} AFX_DATA_INIT
}
В
void CSetting :: DoDataExchange (CDataExchange * pDX)
{
CDialog :: DoDataExchange (pDX);
// {{AFX_DATA_MAP (CSetting)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}} AFX_DATA_MAP
}
В
BEGIN_MESSAGE_MAP (CSetting, CDialog)
// {{AFX_MSG_MAP (CSetting)
//}} AFX_MSG_MAP
END_MESSAGE_MAP ()
В
//////////////////////////////////////////// /////////////////////////////////
// CSetting message handlers
В
BOOL CSetting :: OnInitDialog ()
{
CDialog :: OnInitDialog ();
myFont.CreateFont (11,0,0,0,0, false, false, false, 0,0,0,0,0, "Courier Cyr ");
В
int count = 1, w = 30, h = 20, x0 = 45, y0 = 10;
for (int i = 0; i <29; i + +)
{
for (int j = i; j <29; j + +)
{
if (i == j) <...