ipinDlg, CDialog)
// {{AFX_MSG_MAP (CKurs_LipinDlg)
ON_WM_SYSCOMMAND ()
ON_WM_PAINT ()
ON_WM_QUERYDRAGICON ()
ON_WM_LBUTTONDOWN ()
ON_BN_CLICKED (IDC_BUTTON2, OnButton2)
ON_BN_CLICKED (IDC_BUTTON1, OnButton1)
ON_BN_CLICKED (IDC_BUTTON3, OnButton3)
ON_BN_CLICKED (IDC_BUTTON4, OnButton4)
//}} AFX_MSG_MAP
END_MESSAGE_MAP ()
В
//////////////////////////////////////////// /////////////////////////////////
// CKurs_LipinDlg message handlers
В
BOOL CKurs_LipinDlg :: OnInitDialog ()
{
CDialog :: OnInitDialog ();
В
// Add "About ..." menu item to system menu.
В
// IDM_ABOUTBOX must be in the system command range.
ASSERT ((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT (IDM_ABOUTBOX <0xF000);
В
CMenu * pSysMenu = GetSystemMenu (FALSE);
if (pSysMenu! = NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString (IDS_ABOUTBOX);
if (! strAboutMenu.IsEmpty ())
{
pSysMenu-> AppendMenu (MF_SEPARATOR);
pSysMenu-> AppendMenu (MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}
В
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon (m_hIcon, TRUE) ;//Set big icon
SetIcon (m_hIcon, FALSE) ;//Set small icon
В
name_city [0] = "С.-Петербург";
name_city [1] = "Псков";
name_city [2] = "Новгород";
name_city [3] = "Смоленськ";
name_city [4] = "Тверь";
name_city [5] = "Вологда";
name_city [6] = "Ярославль";
name_city [7] = "Кострома";
name_city [8] = "Москва";
name_city [9] = "Брянськ";
name_city [10] = "Калуга";
name_city [11] = "Іваново";
name_city [12] = "Орел";
name_city [13] = "Тула";
name_city [14] = "Володимир";
name_city [15] = "Курськ";
name_city [16] = "Рязань";
name_city [17] = "Білгород";
name_city [18] = "Липецьк";
name_city [19] = "Н. Новгород";
name_city [20] = "Воронеж";
name_city [21] = "Тамбов";
name_city [22] = "Чебоксари";
name_city [23] = ...