ClientLic_2017/DialogKey.cpp

56 lines
971 B
C++

// DialogKey.cpp : implementation file
//
#include "stdafx.h"
#include "ClientLic.h"
#include "DialogKey.h"
// DialogKey dialog
IMPLEMENT_DYNAMIC(DialogKey, CDialog)
DialogKey::DialogKey(CWnd* pParent /*=NULL*/)
: CDialog(DialogKey::IDD, pParent)
{
clave[0]=0;
producto[0]=0;
}
DialogKey::~DialogKey()
{
}
void DialogKey::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_EDIT1, KeyEditor);
}
BEGIN_MESSAGE_MAP(DialogKey, CDialog)
ON_BN_CLICKED(IDOK, &DialogKey::OnBnClickedOk)
END_MESSAGE_MAP()
// DialogKey message handlers
void DialogKey::OnBnClickedOk()
{
CString st;
KeyEditor.GetWindowText(st);
strcpy(clave,st.GetString());
OnOK();
}
BOOL DialogKey::OnInitDialog()
{
CDialog::OnInitDialog();
if(producto[0])
SetWindowText(producto);
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}