📄 resorgaddinapp.cpp
字号:
/************************************************************************
*
* Resource ID Organiser Add-In for Visual C++ 5.0/6.0
*
* (c) Copyright 2000-2005 by Riverblade Limited (UK). All rights reserved.
*
************************************************************************
*
* Description : CResOrgAddInApp - application class
*
* Compiler : Microsoft Visual C++ 6.0, Service Pack 3 or later
*
* Target
* Environment : Windows 98/NT/2000/XP
*
* NOTE:
*
* This software is provided "as is". All title and copyrights in and
* to the software, including but not limited to any images, text etc.
* etc. incorporated into it, are the property of Anna-Jayne Metcalfe
* and Riverblade Limited, except where acknowledged otherwise.
*
* Your may freely use this code in your own products, PROVIDED
* this notice is not removed or modified.
*
* Please visit http://www.riverblade.co.uk/products/resorg
* or email support@riverblade.co.uk for latest updates and product support
*
************************************************************************
*
* MODIFICATION HISTORY:
*
* This is a controlled document. See project configuration
* control tool for latest version and full version history.
*
* $Archive: /Projects/AddIns/ResOrg/ResOrgAddIn/ResOrgAddInApp.cpp $
* $Revision: 36 $
* $Date: 28/12/04 9:26 $
* $Author: Anna $
*
* $History: ResOrgAddInApp.cpp $
*
* ***************** Version 36 *****************
* User: Anna Date: 28/12/04 Time: 9:26
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* 1. Only symbols display child frames now contain a splitter window
* 2. Corrected view class for HTML displays
* 3. Updated banner
*
* ***************** Version 35 *****************
* User: Anna Date: 13/12/04 Time: 18:33
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* 1. Changed company registry key to "Riverblade"
* 2. Updated file banners
*
* ***************** Version 34 *****************
* User: Anna Date: 21/08/04 Time: 18:58
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* The add-in now uses CResOrgMDIChildWnd for MDI child frames instead of
* CChildFrame (which has been deleted)
*
* ***************** Version 33 *****************
* User: Anna Date: 30/01/03 Time: 21:05
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Moved common application class functionality to CResOrgCoreApp
*
* ***************** Version 32 *****************
* User: Anna Date: 28/01/03 Time: 21:46
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Added multi-file Symbol Display support
*
* ***************** Version 31 *****************
* User: Anna Date: 25/11/02 Time: 16:51
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Changed website address in banner
*
* ***************** Version 30 *****************
* User: Anna Date: 22/10/02 Time: 13:34
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Changed name/mail address (at last!)
*
* ***************** Version 29 *****************
* User: Andy Date: 12/06/02 Time: 14:56
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Set the module state for the About Box to that of the Add-In's DLL
* before invoking it. This ensures that the Add-In will be listed in the
* "Modules" control
*
* ***************** Version 28 *****************
* User: Andy Date: 7/06/02 Time: 17:06
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Renamed the ResOrgUtils module to ResOrgCore
*
* ***************** Version 27 *****************
* User: Andy Date: 17/05/02 Time: 22:15
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Modifications for compatibility with Visual C++.NET
*
* ***************** Version 26 *****************
* User: Andy Date: 10/05/02 Time: 16:04
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Added "Use Office XP style menus" option
*
* ***************** Version 25 *****************
* User: Andy Date: 30/04/02 Time: 16:00
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Fixed a finger trouble type screw up
*
* ***************** Version 24 *****************
* User: Andy Date: 21/04/02 Time: 20:42
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Use Office XP style menus regardless of the target platform (if there's
* a demand we can make this an option)
*
* ***************** Version 23 *****************
* User: Andy Date: 10/22/01 Time: 11:19a
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Added an option [through an override of CDocument::OpenDocumentFile()]
* to call CResOrgSymbolsDoc::CheckNextSymbolValues() when a symbol file
* is opened. The call is made only if the
* CResOrgAddInApp::m_bCheckNextSymbolValues flag is TRUE
*
* ***************** Version 22 *****************
* User: Andy Date: 24/07/01 Time: 11:42
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Corrected the Mailing List Prompt to point at the new mailing list
*
* ***************** Version 21 *****************
* User: Andy Date: 10/07/01 Time: 9:39
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Fix syntax errors
*
* ***************** Version 20 *****************
* User: Andy Date: 8/07/01 Time: 16:56
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Integrated BXFileDialog module (replaces Office2KDlg)
*
* ***************** Version 19 *****************
* User: Andy Date: 3/07/01 Time: 20:49
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Fixed a typo
*
* ***************** Version 18 *****************
* User: Andy Date: 3/07/01 Time: 20:25
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* 1. Added Discussion Board to the Help Menu
* 2. ResOrg on the Web commands are now disabled if no URL is available
* 3. Web windows are now opened in a CChildFrame window so that the
* first instance is maximised
*
* ***************** Version 17 *****************
* User: Andy Date: 5/06/01 Time: 19:32
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Bug fix for context help support
*
* ***************** Version 16 *****************
* User: Andy Date: 2/06/01 Time: 19:48
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Added "Close all windows" command (was in the MainFrame before)
*
* ***************** Version 15 *****************
* User: Andy Date: 2/06/01 Time: 16:53
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* 1. Initialised MRU list to 9 entries
* 2. Enabled drag/drop
*
* ***************** Version 14 *****************
* User: Andy Date: 26/05/01 Time: 21:01
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Fixed a memory leak (forgot to delete m_pHtmlDocTemplate)
*
* ***************** Version 13 *****************
* User: Andy Date: 26/05/01 Time: 17:23
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* 1. Improved help support
* 2. Added Mailing List prompt
*
* ***************** Version 12 *****************
* User: Andy Date: 22/05/01 Time: 15:56
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Minor bug fixes
*
* ***************** Version 11 *****************
* User: Andy Date: 22/05/01 Time: 6:52
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* 1. Added "ResOrg Mailing List" command to the Help Menu
* 2. Tidied up initialisation of document templates
* 3. Moved initialisation of "Options" to OnConnection()
* 4. Added a call to Options.OnExit() to ExitInstance()
*
* ***************** Version 10 *****************
* User: Andy Date: 4/05/01 Time: 2:32
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Set help file name to ResOrg.hlp (overrides the default -
* ResOrgAddIn.hlp)
*
* ***************** Version 9 *****************
* User: Andy Date: 26/04/01 Time: 19:42
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* 1. Added additional "ResOrg on the Web" commands
* 2. Renamed Resource.h to ResOrgAddIn_Res.h
*
* ***************** Version 8 *****************
* User: Andy Date: 2/03/01 Time: 17:35
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Removed unnecessary #include directive
*
* ***************** Version 7 *****************
* User: Andy Date: 17/02/01 Time: 7:07
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* CResOrgSymbolsView => CResOrgSymbolsListView
*
* ***************** Version 6 *****************
* User: Andy Date: 11/12/00 Time: 19:01
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* 1. Set m_pMainDocTemplate->m_bAutoDelete TRUE to prevent it from
* leaking
* 2. Moved CDocManager memory leak fix to OnDisconnection()
*
* ***************** Version 5 *****************
* User: Andy Date: 5/12/00 Time: 20:40
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* 1. Added "ResOrg on the Web" support
* 2. Bug fix for CDocManager related memory leaks. Thanks to Gavin
* Jerman (gavin.jerman@zurich.co.uk) for this
* 3. Raised version to 1.2.1
*
* ***************** Version 4 *****************
* User: Andy Date: 3/12/00 Time: 9:20
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Set _crtBreakAlloc in debug builds only
*
* ***************** Version 3 *****************
* User: Andy Date: 3/12/00 Time: 8:31
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* Updated registry key
*
* ***************** Version 2 *****************
* User: Andy Date: 29/11/00 Time: 18:37
* Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
* 1. Moved Office2KDlg code to its own DLL
* 2. Added file banners
*
* $Nokeywords: $
*
************************************************************************/
#include "StdAfx.h"
#include <initguid.h>
#include <AfxHtml.h>
#include "ResOrgAddIn_Res.h"
#include "MainFrame.h"
#include "ResOrgProjectsDoc.h"
#include "ResOrgProjectsView.h"
#include "DSAddIn.h"
#include "Commands.h"
#include "ResOrgAddIn.h"
#include "DtWinVer.h"
#include "ResOrgAddInApp.h"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -