⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.wzd

📁 E:VISUAL C++MFC扩展编程实例 实例20 拖放文件到视
💻 WZD
字号:
/////////////////////////////////////////////////////////////////////
// Modify the CMainFrame class....
/////////////////////////////////////////////////////////////////////

// 1) Allow your application to accept dropped files by calling the
// following from your CMainFrame's OnCreate() message handler:

	// allow files to be dropped on main window or any child window
	DragAcceptFiles();

// 2) Add a WM_DROPFILES message handler to your CMainFrame class:

void CMainFrame::OnDropFiles(HDROP hDropInfo) 
{
	// get filename stored in hDropInfo and use app to open it
	TCHAR szFileName[_MAX_PATH];
	::DragQueryFile(hDropInfo, 0, szFileName, _MAX_PATH);
	::DragFinish(hDropInfo);
	AfxGetApp()->OpenDocumentFile(szFileName);
	
	CMDIFrameWnd::OnDropFiles(hDropInfo);
}


/////////////////////////////////////////////////////////////////////
// From: Visual C++ MFC Programming by Example by John E. Swanke
// Copyright (C) 1999 jeswanke. All rights reserved.
/////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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