📄 pcdmui.idl
字号:
// PCDMUI.idl : IDL source for PCDMUI.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (PCDMUI.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
#include "olectl.h"
[
object,
uuid(30D86213-6604-4F71-88CC-20557837C1BF),
dual,
helpstring("IPCDMCommander Interface"),
pointer_default(unique)
]
interface IPCDMCommander : IDispatch
{
[id(1), helpstring("method CreateBar")] HRESULT CreateBar(int ID, int Styles);
[id(2), helpstring("method InsertMenu")] HRESULT InsertMenu(BSTR MenuName,int Index);
[id(3), helpstring("method InsertMenuItem")] HRESULT InsertMenuItem(BSTR ItemName,int MenuNo,int Index, int ID);
[id(4), helpstring("method InsertButton")] HRESULT InsertButton(int StockNo,int state,int Index,int ID,BSTR ToolTipText);
[id(5), helpstring("method InsertComboBox")] HRESULT InsertComboBox(int Size,int Index, int ID);
[id(6), helpstring("method AddStringToComboBox")] HRESULT AddStringToComboBox(int ID, BSTR text);
[id(7), helpstring("method SetAdornments")] HRESULT SetAdornments(int Flags);
[id(8), helpstring("method SetCmdBarType")] HRESULT SetCmdBarType(int type);
};
[
uuid(5D10D93B-1A63-4690-AAE8-86010D343405),
version(1.0),
helpstring("PCDMUI 1.0 Type Library")
]
library PCDMUILib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(6C766E9C-5E4A-4EEC-AC13-9DBFED9A3F40),
helpstring("_IPCDMCommanderEvents Interface")
]
dispinterface _IPCDMCommanderEvents
{
properties:
methods:
[id(1), helpstring("method CmdBarAction")] HRESULT CmdBarAction(int ID, BSTR text);
};
[
object,
uuid(79B1EBA4-13E8-4BB6-B47E-D78C970364AA),
dual,
helpstring("IPCDMList Interface"),
pointer_default(unique)
]
interface IPCDMList : IDispatch
{
[id(1), helpstring("method AddColumn")] HRESULT AddColumn(long Size,BSTR Caption);
[id(2), helpstring("method AddItem")] HRESULT AddItem(long Row, long Column, long lParam, BSTR Caption);
[id(3), helpstring("method GetItem")] HRESULT GetItem(long Row, long Column, long lParam, [out,retval] BSTR *Caption);
[id(4), helpstring("method Reset")] HRESULT Reset();
[id(5), helpstring("method DeleteRow")] HRESULT DeleteRow(long Row);
[id(6), helpstring("method SendCommand")] HRESULT SendCommand(long Msg, long wParam, long lParam, [out,retval] long *result);
};
[
uuid(5D060435-1335-491F-9CF3-341047E7995E),
helpstring("PCDMCommander Class")
]
coclass PCDMCommander
{
[default] interface IPCDMCommander;
[default, source] dispinterface _IPCDMCommanderEvents;
};
[
uuid(9E3F117D-AE9B-4797-9C57-0003B27C7C69),
helpstring("_IPCDMListEvents Interface")
]
dispinterface _IPCDMListEvents
{
properties:
methods:
[id(1), helpstring("method RowSelected")] HRESULT RowSelected(long Row,long Column, long lParam);
};
[
object,
uuid(5FEB15D7-8787-4E66-9366-90AC9BACE09F),
dual,
helpstring("IPCDMPicture Interface"),
pointer_default(unique)
]
interface IPCDMPicture : IDispatch
{
[id(1), helpstring("method Load")] HRESULT Load(BSTR Path,LONG ResourceID);
};
[
uuid(CF41B5E5-9CDA-474C-9623-A890DE2B689E),
helpstring("PCDMList Class")
]
coclass PCDMList
{
[default] interface IPCDMList;
[default, source] dispinterface _IPCDMListEvents;
};
[
uuid(645615FA-56CC-405C-A452-DA62701EAEDD),
helpstring("PCDMPicture Class")
]
coclass PCDMPicture
{
[default] interface IPCDMPicture;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -