readme.wzd

来自「The programs and applications on this di」· WZD 代码 · 共 30 行

WZD
30
字号
/////////////////////////////////////////////////////////////////////
// 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 + =
减小字号Ctrl + -
显示快捷键?