Clone
ixen <ixen@copyhandler.com>
committed
on 24 Feb 08
Removed crash dialog button that suggested CH is able to automatically send crash dumps to the author.
LoggerImprovements + 5 more
src/ch/CrashDlg.cpp (+2 -5)
1 1 // CrashDlg.cpp : implementation file
2 2 //
3 3
4 4 #include "stdafx.h"
5 5 #include "ch.h"
6 6 #include "CrashDlg.h"
7 7 #include "version.h"
8 8
9 9 #define IDS_CRASH_TITLE                 _T("Application crashed")
10   #define IDS_STATIC_INFO                 _T("Copy Handler encountered an internal problem and will be closed.\n\nIf you want to help correct this problem in the future releases of program you can send the crash information to the author of this program.")
  10 #define IDS_STATIC_INFO                 _T("Copy Handler encountered an internal problem and will be closed.\n\nIf you want to help correct this problem in the future releases of program you can send the crash information to the author of this program (e-mail it to ixen@copyhandler.com).")
11 11 #define IDS_VERSIONINFO_STATIC  _T("Program version:")
12 12 #define IDS_LOCATIONINFO_STATIC _T("Crash dump location:")
13 13 #define IDS_LOCATION_STATIC             _T("Error encountered while trying to create crash dump")
14   #define IDS_OK                                  _T("&Send the crash information")
15   #define IDS_CANCEL                              _T("&Do not send")
  14 #define IDS_OK                                  _T("&Close")
16 15
17 16 // CCrashDlg dialog
18 17
19 18 IMPLEMENT_DYNAMIC(CCrashDlg, CHLanguageDialog)
20 19
21 20 CCrashDlg::CCrashDlg(bool bResult, PCTSTR pszFilename, CWnd* pParent /*=NULL*/)
22 21         : CDialog(CCrashDlg::IDD, pParent),
23 22         m_bResult(bResult),
24 23         m_strFilename(pszFilename)
25 24 {
26 25 }
27 26
28 27 CCrashDlg::~CCrashDlg()
29 28 {
30 29 }
31 30
32 31 void CCrashDlg::DoDataExchange(CDataExchange* pDX)
33 32 {
34 33         CDialog::DoDataExchange(pDX);
35 34         DDX_Control(pDX, IDC_VERSION_STATIC, m_ctlVersion);
36 35         DDX_Control(pDX, IDC_LOCATION_EDIT, m_ctlLocation);
37 36         DDX_Control(pDX, IDOK, m_ctlOKButton);
38 37         DDX_Control(pDX, IDC_STATIC_INFO, m_ctlInfo);
39 38         DDX_Control(pDX, IDC_VERSIONINFO_STATIC, m_ctlVersionInfo);
40 39         DDX_Control(pDX, IDC_LOCATIONINFO_STATIC, m_ctlLocationInfo);
41           DDX_Control(pDX, IDCANCEL, m_ctlCancelButton);
42 40 }
43 41
44 42
45 43 BEGIN_MESSAGE_MAP(CCrashDlg, CDialog)
46 44 END_MESSAGE_MAP()
47 45
48 46
49 47 // CCrashDlg message handlers
50 48
51 49 BOOL CCrashDlg::OnInitDialog()
52 50 {
53 51         CDialog::OnInitDialog();
54 52
55 53         SetWindowText(IDS_CRASH_TITLE);
56 54         m_ctlInfo.SetWindowText(IDS_STATIC_INFO);
57 55         m_ctlVersionInfo.SetWindowText(IDS_VERSIONINFO_STATIC);
58 56         m_ctlVersion.SetWindowText(PRODUCT_FULL_VERSION);
59 57         m_ctlLocationInfo.SetWindowText(IDS_LOCATIONINFO_STATIC);
60 58         if(m_bResult)
61 59                 m_ctlLocation.SetWindowText(m_strFilename);
62 60         else
63 61                 m_ctlLocation.SetWindowText(IDS_LOCATION_STATIC);
64 62
65 63         m_ctlOKButton.SetWindowText(IDS_OK);
66           m_ctlCancelButton.SetWindowText(IDS_CANCEL);
67 64         m_ctlOKButton.EnableWindow(m_bResult);
68 65
69 66         return TRUE// return TRUE unless you set the focus to a control
70 67         // EXCEPTION: OCX Property Pages should return FALSE
71 68 }