XListCtrlTest.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // XListCtrlTest.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "XListCtrlTest.h"
  5. #include "XListCtrlTestDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. ///////////////////////////////////////////////////////////////////////////////
  12. // CXListCtrlTestApp
  13. BEGIN_MESSAGE_MAP(CXListCtrlTestApp, CWinApp)
  14. //{{AFX_MSG_MAP(CXListCtrlTestApp)
  15. //}}AFX_MSG
  16. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  17. END_MESSAGE_MAP()
  18. ///////////////////////////////////////////////////////////////////////////////
  19. // CXListCtrlTestApp construction
  20. CXListCtrlTestApp::CXListCtrlTestApp()
  21. {
  22. }
  23. ///////////////////////////////////////////////////////////////////////////////
  24. // The one and only CXListCtrlTestApp object
  25. CXListCtrlTestApp theApp;
  26. ///////////////////////////////////////////////////////////////////////////////
  27. // CXListCtrlTestApp initialization
  28. BOOL CXListCtrlTestApp::InitInstance()
  29. {
  30. #ifdef _AFXDLL
  31. Enable3dControls(); // Call this when using MFC in a shared DLL
  32. #else
  33. Enable3dControlsStatic(); // Call this when linking to MFC statically
  34. #endif
  35. CXListCtrlTestDlg dlg;
  36. m_pMainWnd = &dlg;
  37. dlg.DoModal();
  38. return FALSE;
  39. }