-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShareware_inl.hpp
61 lines (50 loc) · 1.59 KB
/
Shareware_inl.hpp
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
////////////////////////////////////////////////////////////////////////////
// Shareware_inl.hpp -- MZC3 shareware maker for Win32
// This file is part of MZC3. See file "ReadMe.txt" and "License.txt".
////////////////////////////////////////////////////////////////////////////
MZC_INLINE void SwMakeStaticHyperlink(
HWND hwndParent, UINT idCtrl, LPCTSTR pszURL/* = NULL*/)
{
SwMakeStaticHyperlink(::GetDlgItem(hwndParent, idCtrl), pszURL);
}
MZC_INLINE DWORD SW_Shareware::GetTrialDays() const
{
return m_dwTrialDays;
}
MZC_INLINE bool SW_Shareware::IsRegistered() const
{
return m_status == SW_Shareware::REGD;
}
MZC_INLINE bool SW_Shareware::IsInTrial() const
{
return m_status == SW_Shareware::IN_TRIAL ||
m_status == SW_Shareware::IN_TRIAL_FIRST_TIME;
}
MZC_INLINE bool SW_Shareware::IsOutOfTrial() const
{
return m_status == SW_Shareware::OUT_OF_TRIAL;
}
MZC_INLINE /*virtual*/ void SW_Shareware::OnTrialFirstTime(HWND hwndParent)
{
}
MZC_INLINE /*virtual*/ void SW_Shareware::OnTrial(HWND hwndParent)
{
UrgeRegister(hwndParent);
}
MZC_INLINE /*virtual*/ bool SW_Shareware::OnOutOfTrial(HWND hwndParent)
{
return UrgeRegister(hwndParent);
}
MZC_INLINE /*virtual*/ void
SW_Shareware::ThisCommandRequiresRegistering(HWND hwndParent)
{
ShowErrorMessage(hwndParent, 32737);
}
MZC_INLINE /*virtual*/ void SW_Shareware::ShowErrorMessage(
HWND hwndParent, UINT uStringID)
{
SwCenterMessageBox(hwndParent,
SwLoadStringDx2(m_hInstance, uStringID),
NULL, MB_ICONERROR);
}
////////////////////////////////////////////////////////////////////////////