1 / 17
文档名称:

小白学UG二次开发.docx

格式:docx   大小:141KB   页数:17页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

小白学UG二次开发.docx

上传人:likuilian1 2022/7/29 文件大小:141 KB

下载得到文件列表

小白学UG二次开发.docx

文档介绍

文档介绍:小白学UG二次开发UGOpen UlStlyer对话框设计
本例参考《UG/Open API、MFC和COM开发实例精解》黄勇,本例基本参照书 中内容操作,没有做太大修改,能正常运行。
第一步,准备工作
在UGII_USER_DIR目 the function, UF_MB_add_styler_actions to associate your
dialog to the menubar is shown below (Search on Example
.
这个example1和2在哪里?谁知
道?
An example of a invoking a dialog from a callback utilizing
UF_STYLER_create_dialog is also shown below (Search for Example
.
An example of a user exit utilizing UF_STYLER_create_dialog is also shown below (Search for Example 3).
The callback structure (回调结构体?不知道是不是这么翻译的):--- DIALOG_ACCESS_cbs --
This structure is VERY important if you have callbacks associated with your dialog. It correlates the dialog items in your dialog with the callback functions you must supply. You should not modify this structure since it MUST match up to the information stored in your dialog file (.dlg).用以链接对话框项目(item)和回调函数,其必须和dlg 文件匹配,不要修改。Any attempt to do so will cause an error while
constructing your dialog. If you wish to modify the association of your callbacks to your dialog, please reload your dialog file (.dlg) into the UIStyler and regenerate your files.
You do not need to be concerned about this structure, simply pass it as an argument to the function, UF_STYLER_create_dialog along with your
dialog file (.dlg).
Example 1 displays the actual call you may make for this particular dialog.
3. The empty callback functions (stubs) associated with your dialog items have also been placed in this file. These empty functions have been created simply to start you along with your coding requirements. The function name, argument list and possible return values have already
been provided for you.
文件中也已经生成了空的回调函数,后续要实现啥功能,就要在里面编 程。
NOTE: Each callback must be wrappered with the functions UF_initialize()
and UF_terminate().
*/
*/
/* These include files are needed for the following template code.
#include <>
#include <>
#include <>
#include <>
#include <>
#include <>