blob: 6b28ba47a4581518a2a6c1ed57727e6b33761635 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
pbos@webrtc.org956aa7e2013-05-21 13:52:32 +000011#include "webrtc/voice_engine/test/win_test/WinTest.h"
12#include "webrtc/voice_engine/test/win_test/WinTestDlg.h"
13#include "webrtc/voice_engine/test/win_test/stdafx.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000014
15#ifdef _DEBUG
16#define new DEBUG_NEW
17#endif
18
19
20// CWinTestApp
21
22BEGIN_MESSAGE_MAP(CWinTestApp, CWinApp)
23 ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
24END_MESSAGE_MAP()
25
26
27// CWinTestApp construction
28
29CWinTestApp::CWinTestApp()
30{
31}
32
33
34// The one and only CWinTestApp object
35
36CWinTestApp theApp;
37
38
39// CWinTestApp initialization
40
41BOOL CWinTestApp::InitInstance()
42{
43 // InitCommonControlsEx() is required on Windows XP if an application
44 // manifest specifies use of ComCtl32.dll version 6 or later to enable
45 // visual styles. Otherwise, any window creation will fail.
46 INITCOMMONCONTROLSEX InitCtrls;
47 InitCtrls.dwSize = sizeof(InitCtrls);
48 // Set this to include all the common control classes you want to use
49 // in your application.
50 InitCtrls.dwICC = ICC_WIN95_CLASSES;
51 InitCommonControlsEx(&InitCtrls);
52
53 CWinApp::InitInstance();
54
55 // Standard initialization
56 // If you are not using these features and wish to reduce the size
57 // of your final executable, you should remove from the following
58 // the specific initialization routines you do not need
59 // Change the registry key under which our settings are stored
60 SetRegistryKey(_T("Local AppWizard-Generated Applications"));
61
62 CWinTestDlg dlg;
63 m_pMainWnd = &dlg;
64 INT_PTR nResponse = dlg.DoModal();
65 if (nResponse == IDOK)
66 {
67 }
68 else if (nResponse == IDCANCEL)
69 {
70 }
71
72 // Since the dialog has been closed, return FALSE so that we exit the
73 // application, rather than start the application's message pump.
74 return FALSE;
75}