-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheBUSPlayerApp.cpp
78 lines (54 loc) · 1.52 KB
/
eBUSPlayerApp.cpp
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
64
65
66
67
68
69
70
71
72
73
74
75
76
// *****************************************************************************
//
// Copyright (c) 2007, Pleora Technologies Inc., All rights reserved.
//
// *****************************************************************************
#include "stdafx.h"
#include "eBUSPlayerApp.h"
#include "eBUSPlayerDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
BEGIN_MESSAGE_MAP( eBUSPlayerApp, CWinApp )
END_MESSAGE_MAP()
///
/// \brief Constructor
///
eBUSPlayerApp::eBUSPlayerApp()
{
}
//
// The one and only eBUSPlayerApp object
//
eBUSPlayerApp theApp;
///
/// \brief App initialization
///
BOOL eBUSPlayerApp::InitInstance()
{
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CCommandLineInfo lCommandLine;
ParseCommandLine( lCommandLine );
CWinApp::InitInstance();
AfxEnableControlContainer();
SetRegistryKey( _T( "Pleora Technologies Inc" ) );
eBUSPlayerDlg dlg( lCommandLine.m_strFileName );
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}