boutDlg) {IDD=IDD_ABOUTBOX};
//}} AFX_DATA
//ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL (CAboutDlg): void DoDataExchange (CDataExchange * pDX);// DDX/DDV support
//}} AFX_VIRTUAL
//Implementation:
//{{AFX_MSG (CAboutDlg)
//}} AFX_MSG_MESSAGE_MAP ()
}; :: CAboutDlg (): CDialog (CAboutDlg :: IDD)
{
//{{AFX_DATA_INIT (CAboutDlg)
//}} AFX_DATA_INIT
} CAboutDlg :: DoDataExchange (CDataExchange * pDX)
{:: DoDataExchange (pDX);
//{{AFX_DATA_MAP (CAboutDlg)
//}} AFX_DATA_MAP
} _ MESSAGE_MAP (CAboutDlg, CDialog)
//{{AFX_MSG_MAP (CAboutDlg)
//No message handlers
//}} AFX_MSG_MAP_MESSAGE_MAP ()
/////////////////////////////////////////////////////////////////////////////
//CLab2_6Dlg dialog_6Dlg :: CLab2_6Dlg (CWnd * pParent/*=NULL * /)
: CDialog (CLab2_6Dlg :: IDD, pParent)
{
//{{AFX_DATA_INIT (CLab2_6Dlg) _a=_T ( ); _ b=_T ( );
//}} AFX_DATA_INIT
//Note that LoadIcon does not require a subsequent DestroyIcon in Win32_hIcon=AfxGetApp () - gt; LoadIcon (IDR_MAINFRAME);
} CLab2_6Dlg :: DoDataExchange (CDataExchange * pDX)
{:: DoDataExchange (pDX);
//{{AFX_DATA_MAP (CLab2_6Dlg) _Control (pDX, IDC_COMBO1, m_c); _ Text (pDX, IDC_EDIT1, m_a); _ Text (pDX, IDC_EDIT2, m_b);
//}} AFX_DATA_MAP
} _ MESSAGE_MAP (CLab2_6Dlg, CDialog)
//{{AFX_MSG_MAP(CLab2_6Dlg)_WM_SYSCOMMAND()_WM_PAINT()_WM_QUERYDRAGICON()_BN_CLICKED(IDC_BUTTON1, OnButton1) _BN_CLICKED (IDC_BUTTON2, OnButton2) _BN_CLICKED (IDC_BUTTON3, OnButton3)
//}} AFX_MSG_MAP_MESSAGE_MAP ()
/////////////////////////////////////////////////////////////////////////////
//CLab2_6Dlg message handlersCLab2_6Dlg :: OnInitDialog ()
{:: OnInitDialog ();
//Add About ... menu item to system menu.
//IDM_ABOUTBOX must be in the system command range. ((IDM_ABOUTBOX amp; 0xFFF0) == IDM_ABOUTBOX); (IDM_ABOUTBOX lt; 0xF000); * pSysMenu=GetSystemMenu (FALSE); (pSysMenu!= NULL)
{strAboutMenu; .LoadString (IDS_ABOUTBOX); (! strAboutMenu.IsEmpty ())
{ gt; AppendMenu (MF_SEPARATOR); gt; 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 (m_hIcon, TRUE);//Set big icon (m_hIcon, FALSE);//Set small icon
//TODO: Add extra initialization hereTRUE;// Return TRUE unless you set the focus to a control
} CLab2_6Dlg :: OnSysCommand (UINT nID, LPARAM lParam)
{((nID amp; 0xFFF0) == IDM_ABOUTBOX)
{dlgAbout; .DoModal ();
}
{:: 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.CLab2_6Dlg :: OnPaint ()
{(IsIconic ())
{dc (this);// Device context for painting (WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc (), 0);
//Center icon in client rectanglecxIcon=GetSystemMetrics (SM_CXICON); cyIcon=GetSystemMetrics (SM_CYICON); rect; ( amp; rect); x=(rect.Width () - cxIcon + 1)/ 2; y=(rect.Height () - cyIcon + 1)/2;
//Draw the icon.DrawIcon (x, y, m_hIcon);
}
{:: OnPaint ();
}
}
//The system calls this to obtain the cursor to display while the user drags
//the minimized window.CLab2_6Dlg :: OnQueryDragIcon ()
{(HCURSOR) m_hIcon;
} CLab2_6Dlg :: OnButton1 ()
{s1, stroka; i, j=0, dop=0; str [25]; * p...