Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.3 KiB

  1. // BMPInfo.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "BMPInfo.h"
  5. #include "BMPInfoDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CBMPInfoApp
  13. BEGIN_MESSAGE_MAP(CBMPInfoApp, CWinApp)
  14. //{{AFX_MSG_MAP(CBMPInfoApp)
  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. // CBMPInfoApp construction
  22. CBMPInfoApp::CBMPInfoApp()
  23. {
  24. }
  25. CBMPInfoApp theApp;
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CBMPInfoApp initialization
  28. BOOL CBMPInfoApp::InitInstance()
  29. {
  30. AfxEnableControlContainer();
  31. #ifdef _AFXDLL
  32. Enable3dControls(); // Call this when using MFC in a shared DLL
  33. #else
  34. Enable3dControlsStatic(); // Call this when linking to MFC statically
  35. #endif
  36. CBMPInfoDlg dlg;
  37. m_pMainWnd = &dlg;
  38. int nResponse = dlg.DoModal();
  39. if (nResponse == IDOK)
  40. {
  41. }
  42. else if (nResponse == IDCANCEL)
  43. {
  44. }
  45. return FALSE;
  46. }