-
Notifications
You must be signed in to change notification settings - Fork 90
/
TabLicense.h
93 lines (72 loc) · 2.43 KB
/
TabLicense.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#if !defined(AFX_TABLICENSE_H__50455981_3814_47FA_94F2_1A10671EAFC7__INCLUDED_)
#define AFX_TABLICENSE_H__50455981_3814_47FA_94F2_1A10671EAFC7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TabLicense.h : header file
//
#include "TabBaseInfo.h"
#include "VwConstCommon.h"
#include "VwEnCodeString.h"
#include "DeHttp.h"
#include "VwOnlineLicenseCheck.h"
#include "DlgEnterKey.h"
/////////////////////////////////////////////////////////////////////////////
// CTabLicense dialog
class CTabLicense :
public CDialog,
public CTabBaseInfo,
public CDeHttp,
public CVwOnlineLicenseCheck
{
// Construction
public:
CTabLicense(CWnd* pParent = NULL); // standard constructor
BOOL LoadConfig();
VOID SetLicenseContent( BOOL bInit, BOOL bEnterpriseVersion, LPCTSTR lpcszPrType, LPCTSTR lpcszCDate, LONG lnExpireType = -1, TCHAR * lpszExpireDate = NULL );
VOID SetRichEditSpecBold( CRichEditCtrl * pRichedit, int nStart, int nEnd );
VOID SetRichEditSpecColor( CRichEditCtrl * pRichedit, int nStart, int nEnd, DWORD dwFontStyle = 0, COLORREF crTextColor = RGB(0xFF,0x00,0x00) );
void OnlineCheckNow();
VOID RenewalNotice();
STVWFIREWALLCONFIG m_stConfig;
//TCHAR m_szRegIp[ 64 ];
//TCHAR m_szRegHost[ 128 ];
//TCHAR m_szRegKey[ 64 ];
//TCHAR m_szRegPrType[ 32 ];
//DWORD m_dwRegExpireType;
//TCHAR m_szRegCreateDate[ 32 ];
//TCHAR m_szRegExpireDate[ 32 ];
TCHAR m_szMsgCaption[ MAX_PATH ];
TCHAR m_szString[ MAX_PATH ];
CXingBalloon * m_pxballoon;
CHyperLink m_LinkBuy;
// Dialog Data
//{{AFX_DATA(CTabLicense)
enum { IDD = IDD_TAB_LICENSE };
CButtonST m_btnOnlineCheck;
CButtonST m_btnEnterKey;
CRichEditCtrl m_richeditInfo;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTabLicense)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CTabLicense)
virtual BOOL OnInitDialog();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnButtonEnterKey();
afx_msg void OnButtonOnlineCheck();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TABLICENSE_H__50455981_3814_47FA_94F2_1A10671EAFC7__INCLUDED_)