📄 articleevents.cpp
字号:
// ArticleEvents.cpp : Implementation of CArticleEvents
#include "stdafx.h"
#include "ArticleEvents.h"
#include <comdef.h>
// CArticleEvents
STDMETHODIMP CArticleEvents::NewArticle(BSTR* pbstrAuthor, BSTR* pbstrTitle, BSTR* pbstrUrl, SHORT sCategory)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CString strAuthor = (LPCTSTR)_bstr_t(*pbstrAuthor, false);
CString strTitle = (LPCTSTR)_bstr_t(*pbstrTitle, false);
CString strUrl = (LPCTSTR)_bstr_t(*pbstrUrl, false);
CString strNewArticle;
strNewArticle.Format("NEW ARTICLE:\n"
"Author: %s\n"
"Title: %s\n"
"URL: %s\n",
strAuthor, strTitle, strUrl);
AfxMessageBox(strNewArticle);
return S_OK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -