URLLink.cpp
上传用户:yxb0227
上传日期:2022-06-16
资源大小:19k
文件大小:1k
源码类别:

按钮控件

开发平台:

Visual C++

  1. // URLLink.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "URLLink.h"
  5. #include "URLLinkDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CURLLinkApp
  13. BEGIN_MESSAGE_MAP(CURLLinkApp, CWinApp)
  14. //{{AFX_MSG_MAP(CURLLinkApp)
  15. //}}AFX_MSG
  16. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  17. END_MESSAGE_MAP()
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CURLLinkApp construction
  20. CURLLinkApp::CURLLinkApp()
  21. {
  22. }
  23. /////////////////////////////////////////////////////////////////////////////
  24. // The one and only CURLLinkApp object
  25. CURLLinkApp theApp;
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CURLLinkApp initialization
  28. BOOL CURLLinkApp::InitInstance()
  29. {
  30. AfxEnableControlContainer();
  31. // Standard initialization
  32. #ifdef _AFXDLL
  33. Enable3dControls(); // Call this when using MFC in a shared DLL
  34. #else
  35. Enable3dControlsStatic(); // Call this when linking to MFC statically
  36. #endif
  37. CURLLinkDlg dlg;
  38. m_pMainWnd = &dlg;
  39. int nResponse = dlg.DoModal();
  40. if (nResponse == IDOK)
  41. {
  42. }
  43. else if (nResponse == IDCANCEL)
  44. {
  45. }
  46. // Since the dialog has been closed, return FALSE so that we exit the
  47. //  application, rather than start the application's message pump.
  48. return FALSE;
  49. }