BurnCD.cpp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // BurnCD.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "BurnCD.h"
  5. #include "BurnCDDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #endif
  9. // CBurnCDApp
  10. BEGIN_MESSAGE_MAP(CBurnCDApp, CWinApp)
  11. ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
  12. END_MESSAGE_MAP()
  13. // CBurnCDApp construction
  14. CBurnCDApp::CBurnCDApp()
  15. {
  16. // TODO: add construction code here,
  17. // Place all significant initialization in InitInstance
  18. }
  19. // The one and only CBurnCDApp object
  20. CBurnCDApp theApp;
  21. // CBurnCDApp initialization
  22. BOOL CBurnCDApp::InitInstance()
  23. {
  24. // InitCommonControlsEx() is required on Windows XP if an application
  25. // manifest specifies use of ComCtl32.dll version 6 or later to enable
  26. // visual styles. Otherwise, any window creation will fail.
  27. INITCOMMONCONTROLSEX InitCtrls;
  28. InitCtrls.dwSize = sizeof(InitCtrls);
  29. // Set this to include all the common control classes you want to use
  30. // in your application.
  31. InitCtrls.dwICC = ICC_WIN95_CLASSES;
  32. InitCommonControlsEx(&InitCtrls);
  33. CWinApp::InitInstance();
  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. // Change the registry key under which our settings are stored
  40. // TODO: You should modify this string to be something appropriate
  41. // such as the name of your company or organization
  42. SetRegistryKey(_T("Local AppWizard-Generated Applications"));
  43. ::CoInitializeEx(NULL, COINIT_MULTITHREADED);
  44. CBurnCDDlg dlg;
  45. m_pMainWnd = &dlg;
  46. INT_PTR 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. ::CoUninitialize();
  58. // Since the dialog has been closed, return FALSE so that we exit the
  59. // application, rather than start the application's message pump.
  60. return FALSE;
  61. }