appdlg.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10. #include "stdafx.h"
  11. #ifdef AFX_CORE3_SEG
  12. #pragma code_seg(AFX_CORE3_SEG)
  13. #endif
  14. #ifdef _DEBUG
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18. /////////////////////////////////////////////////////////////////////////////
  19. // WinApp features for new and open
  20. void CWinApp::OnFileNew()
  21. {
  22. if (m_pDocManager != NULL)
  23. m_pDocManager->OnFileNew();
  24. }
  25. /////////////////////////////////////////////////////////////////////////////
  26. void CWinApp::OnFileOpen()
  27. {
  28. ASSERT(m_pDocManager != NULL);
  29. m_pDocManager->OnFileOpen();
  30. }
  31. // prompt for file name - used for open and save as
  32. BOOL CWinApp::DoPromptFileName(CString& fileName, UINT nIDSTitle, DWORD lFlags,
  33. BOOL bOpenFileDialog, CDocTemplate* pTemplate)
  34. // if pTemplate==NULL => all document templates
  35. {
  36. ASSERT(m_pDocManager != NULL);
  37. return m_pDocManager->DoPromptFileName(fileName, nIDSTitle, lFlags,
  38. bOpenFileDialog, pTemplate);
  39. }
  40. /////////////////////////////////////////////////////////////////////////////