SimpleTextTransfer.cpp
上传用户:xsxdsb
上传日期:2009-12-14
资源大小:672k
文件大小:1k
源码类别:

书籍源码

开发平台:

Visual C++

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