-
Notifications
You must be signed in to change notification settings - Fork 29
/
DlgElevateRequired.cpp
49 lines (38 loc) · 1.08 KB
/
DlgElevateRequired.cpp
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
/*
Free Download Manager Copyright (c) 2003-2016 FreeDownloadManager.ORG
*/
#include "stdafx.h"
#include "fdm.h"
#include "DlgElevateRequired.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CDlgElevateRequired::CDlgElevateRequired(CWnd* pParent )
: CDialog(CDlgElevateRequired::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlgElevateRequired)
m_strMsg = _T("");
//}}AFX_DATA_INIT
}
void CDlgElevateRequired::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgElevateRequired)
DDX_Text(pDX, IDC__MSG, m_strMsg);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlgElevateRequired, CDialog)
//{{AFX_MSG_MAP(CDlgElevateRequired)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL CDlgElevateRequired::OnInitDialog()
{
CDialog::OnInitDialog();
SetDlgItemText (IDOK, LS (L_CONTINUE));
SendDlgItemMessage (IDOK, 0x160C , 0, TRUE);
((CStatic*)GetDlgItem (IDC__ICON))->SetIcon (LoadIcon (NULL, IDI_WARNING));
SetWindowText (LS (L_NOT_ENOUGH_RIGHTS));
return TRUE;
}