使用说明.txt

来自「CAN__组建现场总线系统设计技术(光盘)」· 文本 代码 · 共 35 行

TXT
35
字号
在stdafx.h中加入//for explorer#include <afxconv.h>#include <Shlwapi.h>#pragma comment(lib,"shlwapi.lib")使用view/resource symbols加入ID_OPEN_HERE,用于在文件弹出菜单中加入一项"open here".在使用的地方加入#include "explorer\\explplg.h"CExplorerPlug *m_pwndExplorer;创建方法(例如,放到m_tab的m_ChildCtrlRect中):BOOL CreateExplorer(){	m_pwndExplorer = new CExplorePlug;	CRect rect = m_ChildCtrlRect;	if (!m_pwndExplorer->Create (WS_CHILD|WS_VISIBLE|TVS_HASLINES|TVS_HASBUTTONS|TVS_SHOWSELALWAYS, rect, &m_tab, 1))	{		TRACE (_T("Failed to create CExplorePlug\n"));		return FALSE;	}	m_pwndExplorer->SendMessage (SHLT_MODIFYPATTERN, 0, (LPARAM) _T ("*.*"));	m_pwndExplorer->SendMessage (SHLT_MODIFYFLAGS, 0, SHLT_FILES|SHLT_REFRESHONEXPAND);	m_pwndExplorer->ModifyStyleEx (0, WS_EX_CLIENTEDGE);	return TRUE;	}手工销毁:	m_pwndExplorer->DestroyWindow ();	delete m_pwndExplorer;	m_pwndExplorer = NULL;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?