fixed project dependencies
[TortoiseGit.git] / test / Cache / Cache.cpp
blob8fa0fd973bc6c5704baeef5a40ad04e129ea681b
1 // TortoiseSVN - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2006 - Stefan Kueng
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #include "stdafx.h"
20 #include "Cache.h"
21 #include "CacheDlg.h"
23 #ifdef _DEBUG
24 #define new DEBUG_NEW
25 #endif
28 // CCacheApp
30 BEGIN_MESSAGE_MAP(CCacheApp, CWinApp)
31 ON_COMMAND(ID_HELP, CWinApp::OnHelp)
32 END_MESSAGE_MAP()
35 // CCacheApp construction
37 CCacheApp::CCacheApp()
42 // The one and only CCacheApp object
44 CCacheApp theApp;
47 // CCacheApp initialization
49 BOOL CCacheApp::InitInstance()
51 // InitCommonControls() is required on Windows XP if an application
52 // manifest specifies use of ComCtl32.dll version 6 or later to enable
53 // visual styles. Otherwise, any window creation will fail.
54 InitCommonControls();
56 CWinApp::InitInstance();
58 // Standard initialization
59 // If you are not using these features and wish to reduce the size
60 // of your final executable, you should remove from the following
61 // the specific initialization routines you do not need
62 // Change the registry key under which our settings are stored
63 // TODO: You should modify this string to be something appropriate
64 // such as the name of your company or organization
65 SetRegistryKey(_T("Local AppWizard-Generated Applications"));
67 CCacheDlg dlg;
68 m_pMainWnd = &dlg;
69 INT_PTR nResponse = dlg.DoModal();
70 if (nResponse == IDOK)
72 // TODO: Place code here to handle when the dialog is
73 // dismissed with OK
75 else if (nResponse == IDCANCEL)
77 // TODO: Place code here to handle when the dialog is
78 // dismissed with Cancel
81 // Since the dialog has been closed, return FALSE so that we exit the
82 // application, rather than start the application's message pump.
83 return FALSE;