📄 resorgversionupdateddlg.cpp
字号:
/************************************************************************
*
* Resource ID Organiser Utility Library
*
* (c) Copyright 2000-2001 by Andy Metcalfe (andy.metcalfe@lineone.net)
* All rights reserved.
*
************************************************************************
*
* Filename : ResOrgVersionUpdatedDlg.cpp
*
* Description : CResOrgVersionUpdatedDlg - dialog class
*
* Compiler : Microsoft Visual C++ 6.0, Service Pack 3 or 4
*
* Target
* Environment : Windows 98/NT
*
* NOTE:
*
* This software is provided "as is" free for personal use. All
* title and copyrights in and to the software, including but not
* limited to any images, text, etc. incorporated into it, are
* owned by Andy Metcalfe, except where acknowledged otherwise.
*
* Your may freely to use this code in your own products, PROVIDED
* this notice is not removed or modified.
*
*
* Visit http://www.resorg.co.uk for latest updates
*
************************************************************************
*
* MODIFICATION HISTORY:
*
* This is a controlled document. See project configuration
* control tool for latest version and full version history.
*
* $Archive: /Projects/AddIns/ResOrg/ResOrgUtils/ResOrgVersionUpdatedDlg.cpp $
* $Revision: 1 $
* $Date: 16/05/01 20:59 $
* $Author: Andy $
*
* $History: ResOrgVersionUpdatedDlg.cpp $
*
* ***************** Version 1 *****************
* User: Andy Date: 16/05/01 Time: 20:59
* Created in $/Projects/AddIns/ResOrg/ResOrgUtils
*
*
* $Nokeywords: $
*
************************************************************************/
// ResOrgVersionUpdatedDlg.cpp : implementation file
//
#include "StdAfx.h"
#include "ResOrgUtils_Priv.h"
#include "ResOrgVersionUpdatedDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CResOrgVersionUpdatedDlg dialog
CResOrgVersionUpdatedDlg::CResOrgVersionUpdatedDlg(CWnd* pParent /*=NULL*/)
: CResOrgVersionUpdatedDlg_BASE(pParent)
{
m_sVersion = _T("");
m_sWhatsNewURL = _T("");
}
BEGIN_MESSAGE_MAP(CResOrgVersionUpdatedDlg, CResOrgVersionUpdatedDlg_BASE)
//{{AFX_MSG_MAP(CResOrgVersionUpdatedDlg)
ON_BN_CLICKED( IDC_RESORG_UPDATE_DETAILS, OnClickedDetails)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
int CResOrgVersionUpdatedDlg::DoModal(void)
{
ASSERT(!m_sVersion.IsEmpty() );
FormatMsgEx(MAKEINTRESOURCE(IDS_RESORG_UPDATED),
_T("RTF"),
m_sVersion);
SetRtf();
SetStandardIcon(IDI_INFORMATION);
AddButton(IDYES, FALSE, FALSE, _T("&Yes") );
AddButton(IDNO, TRUE, TRUE, _T("&No") );
if (!m_sWhatsNewURL.IsEmpty())
{
AddButton(IDC_RESORG_UPDATE_DETAILS, TRUE, TRUE, _T("&Details") );
}
return CResOrgVersionUpdatedDlg_BASE::DoModal();
}
BOOL CResOrgVersionUpdatedDlg::OnCmdMsg(UINT uID,
int nCode,
void* pExtra,
AFX_CMDHANDLERINFO* pHandlerInfo )
{
if (IDC_RESORG_UPDATE_DETAILS == uID)
{
return CCmdTarget::OnCmdMsg( uID, nCode, pExtra, pHandlerInfo );
}
return CResOrgVersionUpdatedDlg_BASE::OnCmdMsg( uID, nCode, pExtra, pHandlerInfo );
}
/////////////////////////////////////////////////////////////////////////////
// CResOrgVersionUpdatedDlg implementation
/////////////////////////////////////////////////////////////////////////////
// CResOrgVersionUpdatedDlg message handlers
void CResOrgVersionUpdatedDlg::OnClickedDetails(void)
{
if (!m_sWhatsNewURL.IsEmpty())
{
::ShellExecute( AfxGetMainWnd()->GetSafeHwnd(),
_T("open"),
m_sWhatsNewURL,
NULL,
NULL,
SW_SHOWNORMAL);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -