00001
00002
00003
00004
00005
00006 #include "stdafx.h"
00007 #include "FdmApp.h"
00008 #include "UEDlg.h"
00009
00010 #ifdef _DEBUG
00011 #define new DEBUG_NEW
00012 #undef THIS_FILE
00013 static char THIS_FILE[] = __FILE__;
00014 #endif
00015
00016 CUEDlg::CUEDlg(CWnd* pParent )
00017 : CDialog(CUEDlg::IDD, pParent)
00018 {
00019
00020
00021
00022 }
00023
00024 void CUEDlg::DoDataExchange(CDataExchange* pDX)
00025 {
00026 CDialog::DoDataExchange(pDX);
00027
00028 DDX_Control(pDX, IDC__UEICON, m_wndIcon);
00029
00030 }
00031
00032 BEGIN_MESSAGE_MAP(CUEDlg, CDialog)
00033
00034 ON_WM_CTLCOLOR()
00035
00036 END_MESSAGE_MAP()
00037
00038 BOOL CUEDlg::OnInitDialog()
00039 {
00040 CDialog::OnInitDialog();
00041
00042 m_wndIcon.SetIcon (LoadIcon (NULL, IDI_ERROR));
00043
00044 LOGFONT lf;
00045 GetFont ()->GetLogFont (&lf);
00046 lf.lfWeight = FW_BOLD;
00047 m_fntBold.CreateFontIndirect (&lf);
00048
00049 SetDlgItemText (IDC__MSG6, "2. Open Download Manager has generated a special report on this error. It contains no information about you, only about configuration of your computer and some other technical information. Attach this report to your e-mail. (It is located in \"odm.dmp\" file in the Open Download Manager's installation folder.)");
00050
00051 CString str;
00052 GetDlgItemText (IDC__MSG7, str);
00053 CString str2;
00054 str2.Format (str, PRG_BUILD_NUMBER);
00055 SetDlgItemText (IDC__MSG7, str2);
00056
00057 return TRUE;
00058
00059 }
00060
00061 void CUEDlg::OnOK()
00062 {
00063 CString str;
00064 str.Format ("mailto:support@opendownloadmanager.org?subject=Bug%%20in%%20Free%%20Download%%20Manager%%20build%%20%d%%20found!&body=Dear%%20user!%%20Please%%20don't%%20forget%%20to%%20attach%%20the%%20%%22fdm%d.dmp%%22%%20file%%20that%%20is%%20located%%20in%%20temp%%20folder%%20of%%20your%%20computer.%%20And%%20please%%20try%%20to%%20describe%%20in%%20detail%%20the%%20sequence%%20of%%20actions%%20resulting%%20in%%20a%%20bug.%%20Without%%20this%%20information%%20your%%20report%%20may%%20be%%20useless.%%20Thank%%20you.", PRG_BUILD_NUMBER, PRG_BUILD_NUMBER);
00065 ShellExecute (NULL, "open", str, NULL, NULL, SW_SHOWNORMAL);
00066
00067 char sz [MAX_PATH];
00068 GetTempPath (MAX_PATH, sz);
00069 str.Format ("/select,\"%sfdm%d.dmp\"", sz, PRG_BUILD_NUMBER);
00070 ShellExecute (m_hWnd, "open", "explorer.exe", str, NULL, SW_SHOW);
00071
00072 CDialog::OnOK();
00073 }
00074
00075 HBRUSH CUEDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
00076 {
00077 HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
00078
00079 if (GetDlgItem (IDC__MSG1)->m_hWnd == pWnd->m_hWnd ||
00080 GetDlgItem (IDC__MSG3)->m_hWnd == pWnd->m_hWnd)
00081 SelectObject (pDC->m_hDC, m_fntBold);
00082
00083 return hbr;
00084 }