VC添加拖拽文件功能

1、選中需要添加相應的dlg,alt+enter,設置如下 2、ctrl+w,選擇class info,設置如下 3、添加OnDropFiles消息 4、添加OnDropFiles 代碼 5、ctrl+w 添加OnQueryDragIcon消息 6、這時就可以實現在dlg上拖拽文件啦,第4部的strFileName變量就是拖拽文件的全路徑了^,^
相關文章
相關標籤/搜索