简体   繁体   中英

How does the “Accept Files” option for MFC dialog controls work?

MFC dialog controls such as IP Controls and Edit Controls have an option under behavior to "Accept Files." Where does the file "go" once dropped on the control? Visual Studio doesn't appear to have an event handler for file dropping; can I add one manually?

Controls that have this style receive WM_DROPFILES notification. They receive a handle to an internal structure describing the dropped files. Pass this handle to DragFinish, DragQueryFile, or DragQueryPoint to retrieve information about the dropped files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM