export.cpp
来自「MFC DLL的编写和调用示例」· C++ 代码 · 共 25 行
CPP
25 行
#include "stdafx.h"
#include "Export.h"
#include "DialogC.h"
int ShowDialogC( CString& text )
{
// Removing the following line will cause an First chance
// Exception during runtime when you call this function.
AFX_MANAGE_STATE(AfxGetStaticModuleState());
// If you use the following line of code you will get an assertation
// on line 884 of WinCore.CPP in the CWnd::AssertValid() function
// in debug mode
// CDialogC dlg;
// The work around is
CDialogC dlg( AfxGetMainWnd() );
dlg.m_sText = text;
int nReturn = dlg.DoModal();
if ( nReturn = IDOK )
text = dlg.m_sText;
return nReturn;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?