在listCtrl或TreeCtrl中都有拖放位图CreateDragImage,那么我在普通视里进行拖放要怎么创建拖放位图呢? 各位帮忙看看了。
解决方案 »
- 大量的代码会不会很卡?
- 我的VTK中没有vtkParallel.lib库文件
- 房价还会涨吗?今天和我MM吵架了,该死的房子,MFMFMFMFMFMMF
- 如何实现自定义菜单的功能
- 在VC中用ADO连接Access数据库,怎样判断是否连接?
- STL的map和list容器使用问题?
- Win32 API 和 Platform SDK 有什么区别?
- 要写一个类似于中国游戏中心或者浩方平台的界面,具有IE功能,请提体建议!!!!!
- 请高人指点,我接下来该如何学,已经学了C语言和数据结构
- SNMP的问题!
- CStirng m_StrBTNText; GetDlgItemText(IDC_DEPOT_ON, &m_strBTNText); 出现如下错误!
- 用API函数在ComboBox(组合框)怎么写入字符串、判断选取、获取字符串.
CreateDragImage(HTREEITEM hItem)
hItem 被拖动的树的句柄。
CListCtrl
CreateDragImage(int nItem,LPPOINT lpPoint)
nItem要创建的拖动图像列表的项的下标。
LpPoint接收图像左上角初始位置的POINT结构的地址
{
DragAcceptFiles(GetSafeHwnd(),TRUE);
}响应WM_DROPFILESWM_DROPFILES
Sent when the user drops a file on the window of an application that has registered itself as a recipient of dropped files. Syntax WM_DROPFILES
hDrop = (HANDLE) wParam;
Return Values An application should return zero if it processes this message. Parameters hDrop
Handle to an internal structure describing the dropped files. This handle is used by the DragFinish, DragQueryFile, and DragQueryPoint functions to retrieve information about the dropped files.
See Also DragAcceptFiles