d [26] [0] = x0 +184 ;//Саратов
koord [26] [1] = y0 +456;
koord [27] [0] = x0 +292 ;//Самара
koord [27] [1] = y0 +491;
koord [28] [0] = x0 +91 ;//Волгоград
koord [28] [1] = y0 +506;
В
count_selected = 0;
myFont.CreateFont (17,0,0,0,500, false, false, false, 0,0,0,0,0, "Courier Cyr ");
m_len = "Виберіть кілька міст.";
m_label.SetFont (& myFont);
UpdateData (false);
В
for (int i = 0; i <29; i + +)
flag_select [i] = false;
flag_draw = false;
begin_point = -1;
flag_Bpoint = false;
В В
CStdioFile f1;
f1.Open ("table.ini", CFile :: modeRead);
for (i = 0; i <29; i + +)
{
tableAllCity [i] [i] = 0;
В
CString s1;
f1.ReadString (s1);
int j = i +1;
int k = 0;
while (j <29 && k
{CString s2;
while (s1 [k] == '') k + +;
while (s1 [k]! = '')
{s2 + = s1 [k]; k + +;}
tableAllCity [j] [i] = tableAllCity [i] [j] = atoi (s2);
j + +;
}
}
В
return TRUE;// return TRUE unless you set the focus to a control
}
В
void CKurs_LipinDlg :: OnSysCommand (UINT nID, LPARAM lParam)
{
if ((nID & 0xFFF0) == IDM_ABOUTBOX)
{
CAboutDlg dlgAbout;
dlgAbout.DoModal ();
}
else
{
CDialog :: OnSysCommand (nID, lParam);
}
}
В
// If you add a minimize button to your dialog, you will need the code below
// to draw the icon. For MFC applications using the document/view model,
// this is automatically done for you by the framework.
В
void CKurs_LipinDlg :: OnPaint ()
{
if (IsIconic ())
{
CPaintDC dc (this);// device context for painting
В
SendMessage (WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc (), 0);
В
// Center icon in client rectangle
int cxIcon = GetSystemMetrics (SM_CXICON);
int cyIcon = GetSystemMetrics (SM_CYICON);
CRect rect;
GetClientRect (& rect);
int x = (rect.Width () - cxIcon + 1)/2;
int y = (rect.Height () - cyIcon + 1)/2;
В ...