Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[ea8d13]: ThisMfcApp.h Maximize Restore History

Download this file

ThisMfcApp.h    64 lines (49 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/// \file ThisMfcApp.h
/// \brief App object of MFC version of Password Safe
//-----------------------------------------------------------------------------
#if !defined(ThisMfcApp_h)
#define ThisMfcApp_h
#include "PasswordSafe.h"
#include "stdafx.h"
#include "corelib/MyString.h"
#include "corelib/Util.h"
#include "corelib/PWScore.h"
#include "SystemTray.h"
//-----------------------------------------------------------------------------
class DboxMain;
class ThisMfcApp
: public CWinApp
{
public:
ThisMfcApp();
~ThisMfcApp();
HACCEL m_ghAccelTable;
CRecentFileList* GetMRU() { return m_pMRU; }
public:
DboxMain* m_maindlg;
PWScore m_core;
virtual BOOL InitInstance();
WCE_DEL virtual BOOL ProcessMessageFilter(int code, LPMSG lpMsg);
void EnableAccelerator() { m_bUseAccelerator = true; }
void DisableAccelerator() { m_bUseAccelerator = false; }
afx_msg void OnHelp();
static void StripFileQuotes( CString& strFilename );
DECLARE_MESSAGE_MAP()
protected:
CRecentFileList* m_pMRU;
bool m_bUseAccelerator;
CSystemTray m_TrayIcon;
};
//-----------------------------------------------------------------------------
/*
a globally available reference to the app object, which is a whole lot
cleaner (in my mind) than constantly calling AfxGetApp() for the same
thing... {jpr}
*/
//extern ThisMfcApp app;
//-----------------------------------------------------------------------------
#endif // !defined(ThisMfcApp_h)
//-----------------------------------------------------------------------------
// Local variables:
// mode: c++
// End: