📄 使用说明.txt
字号:
在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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -