// DescargaVersion.cpp : implementation file // #include "stdafx.h" #include "ClientLic.h" #include "DescargaVersion.h" // DescargaVersion dialog IMPLEMENT_DYNAMIC(DescargaVersion, CDialog) DescargaVersion::DescargaVersion(CWnd* pParent /*=NULL*/) : CDialog(DescargaVersion::IDD, pParent) { producActu=verActu=producNew=verNew=desc=0; } DescargaVersion::~DescargaVersion() { } void DescargaVersion::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); DDX_Control(pDX, IDC_EDIT3, productoActual); DDX_Control(pDX, IDC_EDIT4, versionActual); DDX_Control(pDX, IDC_EDIT2, pruductoNew); DDX_Control(pDX, IDC_EDIT5, versionNew); DDX_Control(pDX, IDC_EDIT6, description); } BEGIN_MESSAGE_MAP(DescargaVersion, CDialog) ON_BN_CLICKED(IDOK, &DescargaVersion::OnBnClickedOk) ON_BN_CLICKED(IDCANCEL, &DescargaVersion::OnBnClickedCancel) END_MESSAGE_MAP() // DescargaVersion message handlers void DescargaVersion::OnBnClickedOk() { descarga = true; OnOK(); } void DescargaVersion::OnBnClickedCancel() { // TODO: Add your control notification handler code here OnCancel(); } BOOL DescargaVersion::OnInitDialog() { CDialog::OnInitDialog(); descarga = false; if(producActu) productoActual.SetWindowText(producActu); if(verActu) versionActual.SetWindowText(verActu); if(producNew) pruductoNew.SetWindowText(producNew); if(verNew) versionNew.SetWindowText(verNew); if(desc) description.SetWindowText(desc); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }