Objective Grid: Preventing user cancellation for CGXLongOperation

Article ID: 504
Last updated: 16 Apr, 2018
Article ID: 504
Last updated: 16 Apr, 2018
Revision: 3
Views: 1499
Posted: 10 Jan, 2001
by Meltreger B.
Updated: 16 Apr, 2018
by Meltreger B.

Problem


Objective Grid: Preventing user cancellation for CGXLongOperation


Cause



Action


Yes, try this:

CGXLongOperation theOp;
theOp.SetCanAbort(FALSE);

// Now, call the command which should not be aborted.
// When the called command itself creates
// a CGXLongOperation object
// it inherits all settings you did specify before and therefore
// also SetCanAbort(FALSE).
//
// CGXLongOperation is a kind of stack. Every time a method
// creates a long-operation object a new object is created on the
// stack copying all setting from the previous object.
// When the method returns, the object is popped of the
// CGXLongOperation stack.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 504
Last updated: 16 Apr, 2018
Revision: 3
Views: 1499
Posted: 10 Jan, 2001 by Meltreger B.
Updated: 16 Apr, 2018 by Meltreger B.

Others in this category