ScrollerTest.cpp
上传用户:zengj883
上传日期:2013-02-03
资源大小:670k
文件大小:1k
源码类别:

源码/资料

开发平台:

C/C++

  1. // ScrollerTest.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "ScrollerTest.h"
  5. #include "ScrollerTestDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #endif
  9. // CScrollerTestApp
  10. BEGIN_MESSAGE_MAP(CScrollerTestApp, CWinApp)
  11. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  12. END_MESSAGE_MAP()
  13. // CScrollerTestApp construction
  14. CScrollerTestApp::CScrollerTestApp()
  15. {
  16. // TODO: add construction code here,
  17. // Place all significant initialization in InitInstance
  18. }
  19. // The one and only CScrollerTestApp object
  20. CScrollerTestApp theApp;
  21. // CScrollerTestApp initialization
  22. BOOL CScrollerTestApp::InitInstance()
  23. {
  24. // InitCommonControls() 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. InitCommonControls();
  28. CWinApp::InitInstance();
  29. CScrollerTestDlg dlg;
  30. m_pMainWnd = &dlg;
  31. INT_PTR nResponse = dlg.DoModal();
  32. if (nResponse == IDOK)
  33. {
  34. // TODO: Place code here to handle when the dialog is
  35. //  dismissed with OK
  36. }
  37. else if (nResponse == IDCANCEL)
  38. {
  39. // TODO: Place code here to handle when the dialog is
  40. //  dismissed with Cancel
  41. }
  42. // Since the dialog has been closed, return FALSE so that we exit the
  43. //  application, rather than start the application's message pump.
  44. return FALSE;
  45. }