我的编译工具是 vs2008.net
我在系统中已经安装了acrobat 7.0.5sdk 包
参照sdk提供的相应文档。
例如用plugin的方法构造一个avtoolbar。
但是我在系统中没有找到这个plugin提供的dll或者其他形式的typelib。
从 Project-->Add Class-->mfc dll-->这其中的菜单下拉项中也只有sdk本身的lib。我如何才能在我的mfc程序中调用plugin提供的方法和对象呢。
换句话说我如何能够导入或者说使用这个sdk自带的plugin呢?谢谢大家解答了,送高分。
我在系统中已经安装了acrobat 7.0.5sdk 包
参照sdk提供的相应文档。
例如用plugin的方法构造一个avtoolbar。
但是我在系统中没有找到这个plugin提供的dll或者其他形式的typelib。
从 Project-->Add Class-->mfc dll-->这其中的菜单下拉项中也只有sdk本身的lib。我如何才能在我的mfc程序中调用plugin提供的方法和对象呢。
换句话说我如何能够导入或者说使用这个sdk自带的plugin呢?谢谢大家解答了,送高分。
解决方案 »
- 有没有什么好的检测内存泄漏的工具或插件推荐?
- 关于P2P通信问题的请教。。。急求
- 关于文件打开问题!!!在先开始一个空白doc后再打开其他DOC文件才能HOOK住,如何能直接进行钩子。
- 出错了...声名为 __stdcall 的函数调用消息函数时>>>>>>>>请教了...
- 有人知道发动窗口的机制吗?怎样实现啊?哪里有这样的代码可参考啊?
- 请问有没有操作 安全策略 的API
- 在和多人聊天时,QQ接收消息用的是同一个Socket吗?
- ActiveX控件的使用
- 操作系统页面置换算法
- 重载屏蔽属性
- if (!(m_pRecordset-> BOF) && !(m_pRecordset-> adoEOF))出错!
- 在VC++6.0中使用TeeChart控件在定义了控件变量后不能编译执行的问题
这个没有包括plugin能构造的对象
现在就是找不到plugin对应的库
比如我就想实现这个
EXAMPLE 6.1 Adding a button to a toolbar
AVExecuteProc ExecProcPtr;
AVComputeEnabledProc CompEnabledProcPtr;
ACCB1 void ACCB2 ExecProc (void* data)
{
AVAlertNote ("The Button’s execute proc was
}
ACCB1 ASBool ACCB2 ComputeEnabledProc (void*
{
ASBool expressionorcondition = true;
if (expressionorcondition)
return true;
else return false;
}
ACCB1 ASBool ACCB2 PluginInit (void)
{
AVToolBar ToolBar = AVAppGetToolBar ();
AVToolButton MyButton = NULL;
AVToolButton oldButton = NULL;
ExecProcPtr = NULL;
CompEnabledProcPtr = NULL;
这个是其中的一段代码。
AVToolBar
AVToolBar is Acrobat’s toolbar (the palette of buttons). In Acrobat 4.0 and later, a plug-in can create flyouts that contain additional buttons and attach these flyouts to existing buttons.
Plug-ins can add buttons to and remove buttons from a toolbar, show or hide toolbars, and (Acrobat 5.0) create new toolbars. Because screen space is limited on many monitors, plug-ins should add as few buttons as possible to toolbars.
Buttons can be organized into groups of related buttons, with additional space between the groups. It is possible to implement a group in which only one button can be selected at a time. The logic of doing this is the plug-in’s responsibility; the plug-in API does not provide any means to automatically relate one button’s state to another button’s state.
A plug-in adds buttons to a toolbar by specifying the relative position of the button (before or after) to an existing button.
Although there appear to be multiple toolbars in the Acrobat 4.0 and higher user interface, there is still only one AVToolBar containing all the buttons that are not on flyouts. A plug-
AVSysSetWaitCursor
Turns the wait cursor on or off.
AVToolGetType
Gets a tool’s type.
AVToolIsPersistent
Indicates whether a tool is persistent or is one shot.
Acrobat Viewer (AV) Layer
AVToolButton
6
296 Acrobat and PDF Library API Overview
in controls the toolbar upon which a button will appear by placing the button next to an existing one already in the appropriate location. The AVToolBar methods includ
这个是对它的描述
我想调用这个生成一个自己的avtoolbar
但是怎么才能正确的调用它呢
http://blog.csdn.net/davil_dev/article/details/7793849
如果知道怎么写,sdk中的帮助文档写的很详细了。