📄 treedroptarget.h
字号:
// TreeDropTarget.h: interface for the CTreeDropTarget class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TREEDROPTARGET_H__791E2D1C_6ADC_430A_9488_60A819E8142F__INCLUDED_)
#define AFX_TREEDROPTARGET_H__791E2D1C_6ADC_430A_9488_60A819E8142F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "dsACDObject.h"
/////////////////////////////////////////////////////////////////////////////
// CTreeDropTarget
class CDsACD_IVRView;
class CTreeDropTarget : public COleDropTarget
{
public:
CTreeDropTarget();
virtual ~CTreeDropTarget();
// Overrides
public:
virtual DROPEFFECT OnDragEnter( CWnd* pWnd, COleDataObject* pDataObject,
DWORD dwKeyState, CPoint point );
virtual DROPEFFECT OnDragOver( CWnd* pWnd, COleDataObject* pDataObject,
DWORD dwKeyState, CPoint point );
virtual void OnDragLeave( CWnd* pWnd );
virtual BOOL OnDrop(CWnd* pWnd, COleDataObject* pDataObject,
DROPEFFECT dropEffect, CPoint point);
// Members
public:
//Static variable to store the window handle of source tree control
static HWND m_shWndTreeCtrl;
dsMapHTreeToObj m_TempMapObj;
private:
CDsACD_IVRView *m_pSourceView;
CDsACD_IVRView *m_pDestView;
// Pointer to source tree control
CTreeCtrl *m_pSourceTreeCtrl;
// Pointer to destination tree control
CTreeCtrl *m_pDestTreeCtrl;
// Recursive Function for adding items from source tree to destination tree
void AddItem(HTREEITEM hSrcItem,HTREEITEM hDestItem );
// Function to get the index of the item image and its
// selected image within the tree control image list
void GetItemImages(HTREEITEM hSrcItem, int &nSelItem, int &nNonSelItem);
HTREEITEM m_hDestItem;
};
#endif // !defined(AFX_TREEDROPTARGET_H__791E2D1C_6ADC_430A_9488_60A819E8142F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -