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

C / C++ / MFC

 
GeneralRe: CTime::GetSecond() Pin
18-Jun-01 21:45
suss18-Jun-01 21:45 
GeneralRe: CTime::GetSecond() Pin
Paul D'hertoghe18-Jun-01 23:26
professionalPaul D'hertoghe18-Jun-01 23:26 
GeneralMultithreading and classes. Pin
John Uhlenbrock18-Jun-01 12:30
John Uhlenbrock18-Jun-01 12:30 
GeneralRe: Multithreading and classes. Pin
Tim Deveaux18-Jun-01 13:54
Tim Deveaux18-Jun-01 13:54 
GeneralRe: Multithreading and classes. Pin
John Uhlenbrock18-Jun-01 14:04
John Uhlenbrock18-Jun-01 14:04 
GeneralRe: Multithreading and classes. Pin
Thomas Freudenberg19-Jun-01 2:05
Thomas Freudenberg19-Jun-01 2:05 
GeneralOLE Drag Drop in an ActiveX control Pin
18-Jun-01 11:48
suss18-Jun-01 11:48 
GeneralGetting It Out Of The Recycling Bin Pin
Swinefeaster18-Jun-01 11:33
Swinefeaster18-Jun-01 11:33 
I am writing an application that makes extensive
use of an unlimited undo / redo mechanism, and I've also added the ability for my users to delete files off the hard drive through my gui. I am using the following code to delete a file and send it to the
recycling bin:

SHFILEOPSTRUCT OpInfo;
OpInfo.hwnd = ::AfxGetMainWnd()->m_hWnd;
OpInfo.wFunc = FO_DELETE;
OpInfo.pFrom = FilenameStringRaw;
OpInfo.pTo = NULL;

OpInfo.fFlags = FOF_ALLOWUNDO | FOF_FILESONLY | FOF_NOCONFIRMATION |
FOF_SILENT | FOF_NOERRORUI;

int result = ::SHFileOperation(&OpInfo);

MHogDeleteArray(&FilenameStringRaw);

Now that all works fine. The problem is---how do I let the user UNDO the
delete programmatically? The flag FOF_ALLOWUNDO suggests that this
should be possible, but I can't figure out how. Been looking everywhere.

Thanks.

Matus




====================================
Check out Aephid Photokeeper, the POWERFUL digital
photo album solution at http://www.aephid.com


GeneralRe: Getting It Out Of The Recycling Bin Pin
Carlos Antollini18-Jun-01 11:55
Carlos Antollini18-Jun-01 11:55 
GeneralRe: Getting It Out Of The Recycling Bin Pin
Swinefeaster18-Jun-01 22:35
Swinefeaster18-Jun-01 22:35 
GeneralC++ - Inheritance Pin
Ganesh Ramaswamy18-Jun-01 11:08
Ganesh Ramaswamy18-Jun-01 11:08 
GeneralRe: C++ - Inheritance Pin
18-Jun-01 11:38
suss18-Jun-01 11:38 
Questionfixing "Cannot find the definition (implementation) of this function"? Pin
18-Jun-01 10:59
suss18-Jun-01 10:59 
AnswerRe: fixing Pin
18-Jun-01 21:50
suss18-Jun-01 21:50 
QuestionLoad *.c at runtime? Pin
18-Jun-01 10:51
suss18-Jun-01 10:51 
AnswerRe: Load *.c at runtime? Pin
Christian Graus18-Jun-01 17:10
protectorChristian Graus18-Jun-01 17:10 
AnswerRe: Load *.c at runtime? Pin
18-Jun-01 18:07
suss18-Jun-01 18:07 
GeneralRe: Load *.c at runtime? Pin
19-Jun-01 3:26
suss19-Jun-01 3:26 
QuestionIs there a CD-ROM? Pin
Rickard Andersson2018-Jun-01 10:43
Rickard Andersson2018-Jun-01 10:43 
AnswerRe: Is there a CD-ROM? Pin
Gero Gerber18-Jun-01 10:52
Gero Gerber18-Jun-01 10:52 
AnswerRe: Is there a CD-ROM? Pin
19-Jun-01 7:31
suss19-Jun-01 7:31 
GeneralKeyboard acces... Pin
Rickard Andersson2018-Jun-01 10:39
Rickard Andersson2018-Jun-01 10:39 
GeneralRe: Keyboard acces... Pin
Mukkie19-Jun-01 6:39
Mukkie19-Jun-01 6:39 
GeneralPlus! Settings, use large icons, et. al Pin
18-Jun-01 10:35
suss18-Jun-01 10:35 
Generalbitmaps and PatBlt Pin
michaelh18-Jun-01 10:28
michaelh18-Jun-01 10:28 

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.