?? resorgapp.h
字號(hào):
#if !defined(__ResOrgApp_H__)
#define __ResOrgApp_H__
/************************************************************************
*
* Resource ID Organiser Application
*
* (c) Copyright 2000 by Andy Metcalfe (andy.metcalfe@lineone.net)
* All rights reserved.
*
************************************************************************
*
* Filename : ResOrgApp.h
*
* Description : CResOrgApp - application 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/ResOrgApp/ResOrgApp.h $
* $Revision: 11 $
* $Date: 2/07/01 22:46 $
* $Author: Andy $
*
* $History: ResOrgApp.h $
*
* ***************** Version 11 *****************
* User: Andy Date: 2/07/01 Time: 22:46
* Updated in $/Projects/AddIns/ResOrg/ResOrgApp
* Added additional web commands; all now obtain URLs from options
*
* ***************** Version 10 *****************
* User: Andy Date: 22/06/01 Time: 9:31
* Updated in $/Projects/AddIns/ResOrg/ResOrgApp
* Made class declaration "Rose friendly"
*
* ***************** Version 9 *****************
* User: Andy Date: 26/05/01 Time: 15:25
* Updated in $/Projects/AddIns/ResOrg/ResOrgApp
* 1. Help support
* 2. Added a prompt to ask about subscribing to the Mailing List
*
* ***************** Version 8 *****************
* User: Andy Date: 22/05/01 Time: 6:59
* Updated in $/Projects/AddIns/ResOrg/ResOrgApp
* 1. Added "ResOrg Mailing List" command to the Help Menu
* 2. Tidied up initialisation of document templates
*
* ***************** Version 7 *****************
* User: Andy Date: 16/05/01 Time: 21:06
* Updated in $/Projects/AddIns/ResOrg/ResOrgApp
* Added latest version checking
*
* ***************** Version 6 *****************
* User: Andy Date: 26/04/01 Time: 19:47
* Updated in $/Projects/AddIns/ResOrg/ResOrgApp
* 1. Added additional "ResOrg on the Web" commands
* 2. Renamed Resource.h to ResOrgAddIn_Res.h
*
* ***************** Version 5 *****************
* User: Andy Date: 21/04/01 Time: 7:33
* Updated in $/Projects/AddIns/ResOrg/ResOrgApp
* 1. Added splash screen
* 2. The workspace display is now shown when a workspace is opened, and
* hidden when it is closed
*
* ***************** Version 4 *****************
* User: Andy Date: 5/03/01 Time: 19:15
* Updated in $/Projects/AddIns/ResOrg/ResOrgApp
* 1. Added workspace open/close related code (some of which was in the
* mainframe previously)
* 2. Tidied up the code a bit
*
* ***************** Version 3 *****************
* User: Andy Date: 5/12/00 Time: 20:37
* Updated in $/Projects/AddIns/ResOrg/ResOrgApp
* 1. Added "ResOrg on the Web" support
* 2. Raised version to 1.2.1
*
* ***************** Version 2 *****************
* User: Andy Date: 29/11/00 Time: 18:37
* Updated in $/Projects/AddIns/ResOrg/ResOrgApp
* 1. Moved Office2KDlg code to its own DLL
* 2. Added file banners
*
* $Nokeywords: $
*
************************************************************************/
// ResOrgApp.h : declaration of the CResOrgApp class
//
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "ResOrgApp_Res.h"
/////////////////////////////////////////////////////////////////////////////
// CResOrgApp:
// See Resource ID Organiser.cpp for the implementation of this class
//
#define SPLASHWND_DURATION 2500 // Show splash window for up to 2.5s
class CResOrgAppProjectsDoc;
class CResOrgSplashWnd;
#define CResOrgApp_BASE CWinApp
class CResOrgApp : public CWinApp
{
public:
CResOrgApp(void);
virtual ~CResOrgApp(void);
CMultiDocTemplate* m_pHtmlDocTemplate;
CRecentFileList* m_plistRecentWorkspaces;
CResOrgAppProjectsDoc* m_pProjectsDoc;
DWORD m_dwSplashTime;
CResOrgSplashWnd* m_pwndSplash;
// Operations
public:
CResOrgAppProjectsDoc* GetProjectsDoc(void) const
{ return m_pProjectsDoc; }
BOOL OpenWorkspace(const CString& sPathName);
BOOL CloseWorkspace(void);
BOOL CloseOpenDocuments(void);
// Virtual Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CResOrgApp)
public:
virtual BOOL InitInstance(void);
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual BOOL OnIdle(LONG lCount);
virtual int ExitInstance(void);
virtual void WinHelp(DWORD dwData, UINT nCmd);
//}}AFX_VIRTUAL
// Implementation
protected:
void AddToRecentWorkspacesList(LPCTSTR lpszPathName);
int DoCloseAllWindowsQuery(void);
void ShowSplashScreen(void);
void KillSplashWnd(void);
void OpenHtmlView( const CString& sTitle,
const CString& sURL);
//{{AFX_MSG(CResOrgApp)
afx_msg void OnCmdOpenWorkspace(void);
afx_msg void OnCmdCloseWorkspace(void);
afx_msg void OnUpdateCloseWorkspace(CCmdUI* pCmdUI);
afx_msg void OnCmdOptions(void);
afx_msg void OnCmdWindowCloseAll(void);
afx_msg void OnUpdateWindowCloseAll(CCmdUI* pCmdUI);
afx_msg void OnCmdResOrgWebsite(void);
afx_msg void OnCmdResOrgFAQ(void);
afx_msg void OnUpdateResOrgFAQ(CCmdUI* pCmdUI);
afx_msg void OnCmdResOrgDiscussionBoard(void);
afx_msg void OnUpdateResOrgDiscussionBoard(CCmdUI* pCmdUI);
afx_msg void OnCmdResOrgKnownBugs(void);
afx_msg void OnUpdateResOrgKnownBugs(CCmdUI* pCmdUI);
afx_msg void OnCmdResOrgMailingList(void);
afx_msg void OnUpdateResOrgMailingList(CCmdUI* pCmdUI);
afx_msg void OnCmdResOrgUpdateCheckCompleted(void);
afx_msg void OnCmdAbout(void);
//}}AFX_MSG
afx_msg BOOL OnCmdOpenRecentWorkspace(UINT nID);
afx_msg void OnUpdateRecentWorkspaceMenu(CCmdUI* pCmdUI);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(__ResOrgApp_H__)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -