一、录制一个 宏 按钮。
二、编写 代码 ,把宏写入。
ProStringToWstring这个 函数 很多限制尽量 不要用。
CString macro;
macro = "~ Close `main_dlg_cur` `appl_casc`;\
~ Command `ProCmdDwgProperties` ;\
~ Activate `mdlprops_dlg` `OPTIONS_lay_Controls.push_Change.lay_instance`;\
~ FocusOut `preferences` `InputOpt`;~ Activate `preferences` `Open`;\
~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\
~ Activate `file_open` `desktop_pb`;\
~ Select `file_open` `Ph_list.Filelist` 1 `活动绘图.dtl`;\
~ Command `ProFileSelPushOpen_Standard@context_dlg_open_cmd` ;\
~ Activate `preferences` `ApplySave`;~ FocusOut `preferences` `InputOpt`;\
~ Activate `preferences` `Close`;~ Activate `mdlprops_dlg` `DlgClose_push`;";
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删