YOU CAN CODE!

 

With The Case Of UCanCode.net  Release The Power OF  Visual C++ !   HomeProducts | PurchaseSupport | Downloads  
Download Evaluation
Pricing & Purchase?
E-XD++Visual C++/ MFC Products
Overview
Features Tour 
Electronic Form Solution
Visualization & HMI Solution
Power system HMI Solution
CAD Drawing and Printing Solution

Bar code labeling Solution
Workflow Solution

Coal industry HMI Solution
Instrumentation Gauge Solution

Report Printing Solution
Graphical modeling Solution
GIS mapping solution

Visio graphics solution
Industrial control SCADA &HMI Solution
BPM business process Solution

Industrial monitoring Solution
Flowchart and diagramming Solution
Organization Diagram Solution

Graphic editor Source Code
UML drawing editor Source Code
Map Diagramming Solution

Architectural Graphic Drawing Solution
Request Evaluation
Purchase
VX++ Cross-Platform C/C++
Overview
Download
Purchase
ActiveX COM Products
Overview
Download
Purchase
Technical Support
  General Q & A
Discussion Board
Contact Us

Links

Get Ready to Unleash the Power of UCanCode .NET

 

E-XD++ Enterprise Edition -- Product Information


22. Macro Commands

E-XD++ supports batch-command operation, which means that you can integrate several operations into a one-time operation. This integrated operation can be manipulated later in a single Undo/Redo operation.

Functions for batch commands are shown below:

// Starting action.
void BegAction(const UINT &nActionType = 0,const BOOL &bUpdateAll = FALSE,
const BOOL &bRemoveAllSelection = TRUE,const BOOL &bEnablePrepare = FALSE);

// Starting action.
void BegAction(const CString& strComment,const UINT &nActionType = 0,const BOOL &bUpdateAll = FALSE,
const BOOL &bRemoveAllSelection = TRUE,const BOOL &bEnablePrepare = FALSE);

// Starting action.
void BegActionExt(const UINT& nIDComment,const UINT &nActionType = 0,const BOOL &bUpdateAll = FALSE,
const BOOL &bRemoveAllSelection = TRUE,const BOOL &bEnablePrepare = FALSE);

// Prepare and starting the group action
void BegActionExt(CFODirectActionMacro* pUndoGrp);

// Change action's comment
// strComment -- comment string of the action
void SetUndoComment(const CString& strComment);

// Change action's comment
// nIDComment -- string id for the action
void SetUndoComment(const UINT& nIDComment);

// Add action.
// pAction -- pointer of the action
virtual void AddAction(CFOAction *pAction);

// Add action.
// pAction -- pointer of the action
virtual void AddMacroAction(CFOActionMacro *pAction);

// Add action.
// pList -- list of the actions
virtual void AddMultiActions(CActionList *pList);

// End current macro action.
void EndAction();

Usage:

Call BegAction first, then call AddAction to add commands to batch commands. In the end, call EndAction to acknowledge the new added commands.

 

Copyright ?1998-2024 UCanCode.Net Software , all rights reserved.
Other product and company names herein may be the trademarks of their respective owners.

Please direct your questions or comments to webmaster@ucancode.net