Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: set time like a clock Pin
Joe Woodbury4-May-04 19:45
professionalJoe Woodbury4-May-04 19:45 
GeneralRe: set time like a clock Pin
Member 8209054-May-04 20:05
Member 8209054-May-04 20:05 
GeneralRe: set time like a clock Pin
Joe Woodbury5-May-04 6:31
professionalJoe Woodbury5-May-04 6:31 
Questionwhy not to open <graphics.h>in vc++? Pin
vividtang3-May-04 22:38
vividtang3-May-04 22:38 
AnswerRe: why not to open <graphics.h>in vc++? Pin
Jens Doose3-May-04 22:57
Jens Doose3-May-04 22:57 
QuestionHow to drag file between my app and windows explorer /desktop. Pin
andyxia3-May-04 22:11
andyxia3-May-04 22:11 
AnswerRe: How to drag file between my app and windows explorer /desktop. Pin
Jens Doose3-May-04 23:22
Jens Doose3-May-04 23:22 
GeneralRe: How to drag file between my app and windows explorer /desktop. Pin
andyxia4-May-04 0:17
andyxia4-May-04 0:17 
Big Grin | :-D
Hi,Jens,

Thanks for your reply.

In my program, I will do:
1. Drag some items from my ListView control to Windows Explorer.
2. I should get the target path where I finished the dragging.
3. If it is a valid path, I will extract the selected files to there.

My program is a Compress/Decompress tool just like WinZip and WinRAR.

In my ListView class, I responsed LVN_BEGINDRAG message to begin a dropping action like follow codes:
// Begin dropping...
CMyZipBoxDataSource datasrc;
FORMATETC etc = { CF_HDROP, NULL, DVASPECT_CONTENT, -1, TYMED_HGLOBAL };
datasrc.DelayRenderFileData(CF_HDROP, &etc);
DROPEFFECT dwEffect = datasrc.DoDragDrop ( DROPEFFECT_COPY );
... ...
// End dropping

the Class CMyZipBoxDataSource is inherited from COleDataSource, and I overrided the function:
BOOL CMyZipBoxDataSource::OnRenderFileData(LPFORMATETC lpFormatEtc,CFile* pFile)

I don't know:
1. what should I write down in this function to handle this process?
2. how to get the target path the file will be extracted?
3. WinRAR extract selected files to a temp path after mouse up when draged. when it finished, move the extracted files to target path. Can I extract them to the target path directly?

That's my question, Thanks for your attention again.
Could you help me?
GeneralRe: How to drag file between my app and windows explorer /desktop. Pin
Jens Doose4-May-04 1:06
Jens Doose4-May-04 1:06 
Generalto create a browse button to display path of file using mfc dialog box Pin
shiva shankar3-May-04 21:43
shiva shankar3-May-04 21:43 
GeneralRe: to create a browse button to display path of file using mfc dialog box Pin
2249173-May-04 23:07
2249173-May-04 23:07 
Generalout of memory Pin
Member 10128693-May-04 21:40
Member 10128693-May-04 21:40 
GeneralRe: out of memory Pin
toxcct3-May-04 22:40
toxcct3-May-04 22:40 
GeneralA way to copy a file from my www-server to CPU… Pin
anderslundsgard3-May-04 21:11
anderslundsgard3-May-04 21:11 
GeneralRe: A way to copy a file from my www-server to CPU… Pin
2249173-May-04 21:18
2249173-May-04 21:18 
GeneralRe: A way to copy a file from my www-server to CPU… Pin
Alexander M.,4-May-04 3:19
Alexander M.,4-May-04 3:19 
Generalnt service to interact with desktop Pin
Member 10188233-May-04 21:05
Member 10188233-May-04 21:05 
GeneralRe: nt service to interact with desktop Pin
Antony M Kancidrowski4-May-04 3:02
Antony M Kancidrowski4-May-04 3:02 
Generaldebugging Pin
Anonymous3-May-04 21:00
Anonymous3-May-04 21:00 
GeneralExtract files from MRU Pin
Filomela3-May-04 20:31
Filomela3-May-04 20:31 
GeneralRegarding EditBox notifications..... Pin
kenjox3-May-04 19:45
kenjox3-May-04 19:45 
Generalto transfer a file Pin
Member 10128693-May-04 19:02
Member 10128693-May-04 19:02 
GeneralRe: to transfer a file Pin
Vadim Tabakman3-May-04 19:20
Vadim Tabakman3-May-04 19:20 
GeneralRe: to transfer a file Pin
Antti Keskinen3-May-04 21:11
Antti Keskinen3-May-04 21:11 
GeneralThis N00b needs help please Pin
MrNiceBerG3-May-04 18:31
MrNiceBerG3-May-04 18:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.