Mp3Manager.cpp
Upload User: gkimayay
Upload Date: 2013-04-13
Package Size: 23k
Code Size: 2k
Category:

mpeg mp3

Development Platform:

Visual C++

  1. // Mp3Manager.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "Mp3Manager.h"
  5. #include "Mp3ManagerDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CMp3ManagerApp
  13. BEGIN_MESSAGE_MAP(CMp3ManagerApp, CWinApp)
  14. //{{AFX_MSG_MAP(CMp3ManagerApp)
  15. // NOTE - the ClassWizard will add and remove mapping macros here.
  16. //    DO NOT EDIT what you see in these blocks of generated code!
  17. //}}AFX_MSG
  18. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  19. END_MESSAGE_MAP()
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CMp3ManagerApp construction
  22. CMp3ManagerApp::CMp3ManagerApp()
  23. {
  24. // TODO: add construction code here,
  25. // Place all significant initialization in InitInstance
  26. }
  27. /////////////////////////////////////////////////////////////////////////////
  28. // The one and only CMp3ManagerApp object
  29. CMp3ManagerApp theApp;
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CMp3ManagerApp initialization
  32. BOOL CMp3ManagerApp::InitInstance()
  33. {
  34. AfxEnableControlContainer();
  35. // Standard initialization
  36. // If you are not using these features and wish to reduce the size
  37. //  of your final executable, you should remove from the following
  38. //  the specific initialization routines you do not need.
  39. #ifdef _AFXDLL
  40. Enable3dControls(); // Call this when using MFC in a shared DLL
  41. #else
  42. Enable3dControlsStatic(); // Call this when linking to MFC statically
  43. #endif
  44. CMp3ManagerDlg dlg;
  45. m_pMainWnd = &dlg;
  46. int nResponse = dlg.DoModal();
  47. if (nResponse == IDOK)
  48. {
  49. // TODO: Place code here to handle when the dialog is
  50. //  dismissed with OK
  51. }
  52. else if (nResponse == IDCANCEL)
  53. {
  54. // TODO: Place code here to handle when the dialog is
  55. //  dismissed with Cancel
  56. }
  57. // Since the dialog has been closed, return FALSE so that we exit the
  58. //  application, rather than start the application's message pump.
  59. return FALSE;
  60. }