ciderpress/app/EnterRegDialog.h

50 lines
1.3 KiB
C
Raw Normal View History

2007-03-27 17:47:10 +00:00
/*
* CiderPress
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
* See the file LICENSE for distribution terms.
*/
/*
* Dialog allowing the user to enter registration data.
*/
#ifndef __ENTERREGDIALOG__
#define __ENTERREGDIALOG__
#include "../util/UtilLib.h"
#include "resource.h"
/*
* Straightforward dialog. We validate the registration key in the DDX
* function, so an IDOK is a guarantee that they have entered valid data. It
* is up to the caller to store the values in the registry.
*/
class EnterRegDialog : public CDialog {
public:
EnterRegDialog(CWnd* pParent = nil) : CDialog(IDD_REGISTRATION, pParent)
{ fDepth = 0; }
virtual ~EnterRegDialog(void) {}
2007-03-27 17:47:10 +00:00
CString fUserName;
CString fCompanyName;
CString fRegKey;
2007-03-27 17:47:10 +00:00
static int GetRegInfo(CWnd* pWnd);
2007-03-27 17:47:10 +00:00
private:
// overrides
virtual BOOL OnInitDialog(void);
virtual void DoDataExchange(CDataExchange* pDX);
2007-03-27 17:47:10 +00:00
afx_msg void OnUserChange(void);
afx_msg void OnCompanyChange(void);
afx_msg void OnRegChange(void);
afx_msg void OnHelp(void);
2007-03-27 17:47:10 +00:00
void HandleEditChange(int editID, int crcID);
2007-03-27 17:47:10 +00:00
MyEdit fMyEdit;
int fDepth;
2007-03-27 17:47:10 +00:00
DECLARE_MESSAGE_MAP()
2007-03-27 17:47:10 +00:00
};
#endif /*__ENTERREGDIALOG__*/