home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / OLEDLG.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-06  |  24.4 KB  |  646 lines

  1. //----------------------------------------------------------------------------
  2. // OleDlg.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
  3. // From: OleDlg.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef OleDlgHPP
  6. #define OleDlgHPP
  7. //----------------------------------------------------------------------------
  8. #ifndef OLE2HPP
  9. #include <OLE2.hpp>
  10. #endif
  11.  
  12. #ifndef CommCtrlHPP
  13. #include <CommCtrl.hpp>
  14. #endif
  15.  
  16. #ifndef WindowsHPP
  17. #include <Windows.hpp>
  18. #endif
  19.  
  20. #ifndef SystemHPP
  21. #include <System.hpp>
  22. #endif
  23.  
  24. namespace Oledlg
  25. {
  26. //-- type declarations -------------------------------------------------------
  27. typedef System::Longint __stdcall (*TFNOleUIHook)(System::Integer Wnd, System::Longint Msg, System::Longint 
  28.     WParam, System::Longint LParam);
  29.  
  30. struct TOleUIInsertObject;
  31. typedef TOleUIInsertObject *POleUIInsertObject;
  32.  
  33. struct TOleUIInsertObject
  34. {
  35.     System::Longint cbStruct;
  36.     System::Longint dwFlags;
  37.     System::Integer hWndOwner;
  38.     System::Char *lpszCaption;
  39.     TFNOleUIHook lpfnHook;
  40.     System::Longint lCustData;
  41.     System::Integer hInstance;
  42.     System::Char *lpszTemplate;
  43.     System::Integer hResource;
  44.     Ole2::TGUID clsid;
  45.     System::Char *lpszFile;
  46.     System::Integer cchFile;
  47.     System::Integer cClsidExclude;
  48.     Ole2::TGUID *lpClsidExclude;
  49.     Ole2::TGUID iid;
  50.     System::Longint oleRender;
  51.     Ole2::TFormatEtc *lpFormatEtc;
  52.     Ole2::IOleClientSite *lpIOleClientSite;
  53.     Ole2::IStorage *lpIStorage;
  54.     void *ppvObj;
  55.     System::Longint sc;
  56.     System::Integer hMetaPict;
  57. } ;
  58.  
  59. struct TOleUIPasteEntry;
  60. typedef TOleUIPasteEntry *POleUIPasteEntry;
  61.  
  62. struct TOleUIPasteEntry
  63. {
  64.     Ole2::TFormatEtc fmtetc;
  65.     System::Char *lpstrFormatName;
  66.     System::Char *lpstrResultText;
  67.     System::Longint dwFlags;
  68.     System::Longint dwScratchSpace;
  69. } ;
  70.  
  71. struct TOleUIPasteSpecial;
  72. typedef TOleUIPasteSpecial *POleUIPasteSpecial;
  73.  
  74. struct TOleUIPasteSpecial
  75. {
  76.     System::Longint cbStruct;
  77.     System::Longint dwFlags;
  78.     System::Integer hWndOwner;
  79.     System::Char *lpszCaption;
  80.     TFNOleUIHook lpfnHook;
  81.     System::Longint lCustData;
  82.     System::Integer hInstance;
  83.     System::Char *lpszTemplate;
  84.     System::Integer hResource;
  85.     Ole2::IDataObject *lpSrcDataObj;
  86.     TOleUIPasteEntry *arrPasteEntries;
  87.     System::Integer cPasteEntries;
  88.     System::Longint *arrLinkTypes;
  89.     System::Integer cLinkTypes;
  90.     System::Integer cClsidExclude;
  91.     Ole2::TGUID *lpClsidExclude;
  92.     System::Integer nSelectedIndex;
  93.     System::LongBool fLink;
  94.     System::Integer hMetaPict;
  95.     Windows::TSize sizel;
  96. } ;
  97.  
  98. class __declspec(delphiclass) IOleUILinkContainer;
  99. class __declspec(pascalimplementation) IOleUILinkContainer : public Ole2::IUnknown
  100. {
  101.     typedef IOleUILinkContainer ThisClass;
  102.     typedef Ole2::IUnknown inherited;
  103.     
  104. public:
  105.     virtual System::Longint __stdcall GetNextLink(System::Longint dwLink) = 0;
  106.     virtual System::Longint __stdcall SetLinkUpdateOptions(System::Longint dwLink, System::Longint dwUpdateOpt
  107.         ) = 0;
  108.     virtual System::Longint __stdcall GetLinkUpdateOptions(System::Longint dwLink, System::Longint &dwUpdateOpt
  109.         ) = 0;
  110.     virtual System::Longint __stdcall SetLinkSource(System::Longint dwLink, System::PChar pszDisplayName
  111.         , System::Longint lenFileName, System::Longint &chEaten, System::LongBool fValidateSource) = 0;
  112.     virtual System::Longint __stdcall GetLinkSource(System::Longint dwLink, System::PChar &pszDisplayName
  113.         , System::Longint &lenFileName, System::PChar &pszFullLinkType, System::PChar &pszShortLinkType, System::LongBool 
  114.         &fSourceAvailable, System::LongBool &fIsSelected) = 0;
  115.     virtual System::Longint __stdcall OpenLinkSource(System::Longint dwLink) = 0;
  116.     virtual System::Longint __stdcall UpdateLink(System::Longint dwLink, System::LongBool fErrorMessage
  117.         , System::LongBool fErrorAction) = 0;
  118.     virtual System::Longint __stdcall CancelLink(System::Longint dwLink) = 0;
  119. public:
  120.     /* !! TObject.Create */ __fastcall IOleUILinkContainer(void) : Ole2::IUnknown() { }
  121.     /* !! TObject.Destroy */ __fastcall virtual ~IOleUILinkContainer(void) { }
  122.     
  123. };
  124.  
  125. struct TOleUIEditLinks;
  126. typedef TOleUIEditLinks *POleUIEditLinks;
  127.  
  128. struct TOleUIEditLinks
  129. {
  130.     System::Longint cbStruct;
  131.     System::Longint dwFlags;
  132.     System::Integer hWndOwner;
  133.     System::Char *lpszCaption;
  134.     TFNOleUIHook lpfnHook;
  135.     System::Longint lCustData;
  136.     System::Integer hInstance;
  137.     System::Char *lpszTemplate;
  138.     System::Integer hResource;
  139.     IOleUILinkContainer *OleUILinkContainer;
  140. } ;
  141.  
  142. struct TOleUIChangeIcon;
  143. typedef TOleUIChangeIcon *POleUIChangeIcon;
  144.  
  145. struct TOleUIChangeIcon
  146. {
  147.     System::Longint cbStruct;
  148.     System::Longint dwFlags;
  149.     System::Integer hWndOwner;
  150.     System::Char *lpszCaption;
  151.     TFNOleUIHook lpfnHook;
  152.     System::Longint lCustData;
  153.     System::Integer hInstance;
  154.     System::Char *lpszTemplate;
  155.     System::Integer hResource;
  156.     System::Integer hMetaPict;
  157.     Ole2::TGUID clsid;
  158.     System::Char szIconExe[260];
  159.     System::Integer cchIconExe;
  160. } ;
  161.  
  162. struct TOleUIConvert;
  163. typedef TOleUIConvert *POleUIConvert;
  164.  
  165. struct TOleUIConvert
  166. {
  167.     System::Longint cbStruct;
  168.     System::Longint dwFlags;
  169.     System::Integer hWndOwner;
  170.     System::Char *lpszCaption;
  171.     TFNOleUIHook lpfnHook;
  172.     System::Longint lCustData;
  173.     System::Integer hInstance;
  174.     System::Char *lpszTemplate;
  175.     System::Integer hResource;
  176.     Ole2::TGUID clsid;
  177.     Ole2::TGUID clsidConvertDefault;
  178.     Ole2::TGUID clsidActivateDefault;
  179.     Ole2::TGUID clsidNew;
  180.     System::Longint dvAspect;
  181.     System::Word wFormat;
  182.     System::LongBool fIsLinkedObject;
  183.     System::Integer hMetaPict;
  184.     System::Char *lpszUserType;
  185.     System::LongBool fObjectsIconChanged;
  186.     System::Char *lpszDefLabel;
  187.     System::Integer cClsidExclude;
  188.     Ole2::TGUID *lpClsidExclude;
  189. } ;
  190.  
  191. struct TOleUIBusy;
  192. typedef TOleUIBusy *POleUIBusy;
  193.  
  194. struct TOleUIBusy
  195. {
  196.     System::Longint cbStruct;
  197.     System::Longint dwFlags;
  198.     System::Integer hWndOwner;
  199.     System::Char *lpszCaption;
  200.     TFNOleUIHook lpfnHook;
  201.     System::Longint lCustData;
  202.     System::Integer hInstance;
  203.     System::Char *lpszTemplate;
  204.     System::Integer hResource;
  205.     System::Integer task;
  206.     System::Integer *lphWndDialog;
  207. } ;
  208.  
  209. class __declspec(delphiclass) IOleUIObjInfo;
  210. class __declspec(pascalimplementation) IOleUIObjInfo : public Ole2::IUnknown
  211. {
  212.     typedef IOleUIObjInfo ThisClass;
  213.     typedef Ole2::IUnknown inherited;
  214.     
  215. public:
  216.     virtual System::Longint __stdcall GetObjectInfo(System::Longint dwObject, System::Longint &dwObjSize
  217.         , System::PChar &lpszLabel, System::PChar &lpszType, System::PChar &lpszShortType, System::PChar &
  218.         lpszLocation) = 0;
  219.     virtual System::Longint __stdcall GetConvertInfo(System::Longint dwObject, Ole2::TGUID &ClassID, System::Word 
  220.         &wFormat, Ole2::TGUID &ConvertDefaultClassID, Ole2::PGUID &lpClsidExclude, System::Longint &cClsidExclude
  221.         ) = 0;
  222.     virtual System::Longint __stdcall ConvertObject(System::Longint dwObject, const Ole2::TGUID &clsidNew
  223.         ) = 0;
  224.     virtual System::Longint __stdcall GetViewInfo(System::Longint dwObject, System::Integer &hMetaPict, 
  225.         System::Longint &dvAspect, System::Integer &nCurrentScale) = 0;
  226.     virtual System::Longint __stdcall SetViewInfo(System::Longint dwObject, System::Integer hMetaPict, 
  227.         System::Longint dvAspect, System::Integer nCurrentScale, System::LongBool bRelativeToOrig) = 0;
  228. public:
  229.         
  230.     /* !! TObject.Create */ __fastcall IOleUIObjInfo(void) : Ole2::IUnknown() { }
  231.     /* !! TObject.Destroy */ __fastcall virtual ~IOleUIObjInfo(void) { }
  232.     
  233. };
  234.  
  235. class __declspec(delphiclass) IOleUILinkInfo;
  236. class __declspec(pascalimplementation) IOleUILinkInfo : public IOleUILinkContainer
  237. {
  238.     typedef IOleUILinkInfo ThisClass;
  239.     typedef IOleUILinkContainer inherited;
  240.     
  241. public:
  242.     virtual System::Longint __stdcall GetLastUpdate(System::Longint dwLink, Windows::TFileTime &LastUpdate
  243.         ) = 0;
  244. public:
  245.     /* !! TObject.Create */ __fastcall IOleUILinkInfo(void) : Oledlg::IOleUILinkContainer() { }
  246.     /* !! TObject.Destroy */ __fastcall virtual ~IOleUILinkInfo(void) { }
  247.     
  248. };
  249.  
  250. struct TOleUIGnrlProps;
  251. typedef TOleUIGnrlProps *POleUIGnrlProps;
  252.  
  253. struct TOleUIGnrlProps
  254. {
  255.     System::Longint cbStruct;
  256.     System::Longint dwFlags;
  257.     System::Longint dwReserved1[2];
  258.     TFNOleUIHook lpfnHook;
  259.     System::Longint lCustData;
  260.     System::Longint dwReserved2[3];
  261.     void *lpOP;
  262. } ;
  263.  
  264. struct TOleUIViewProps;
  265. typedef TOleUIViewProps *POleUIViewProps;
  266.  
  267. struct TOleUIViewProps
  268. {
  269.     System::Longint cbStruct;
  270.     System::Longint dwFlags;
  271.     System::Longint dwReserved1[2];
  272.     TFNOleUIHook lpfnHook;
  273.     System::Longint lCustData;
  274.     System::Longint dwReserved2[3];
  275.     void *lpOP;
  276.     System::Integer nScaleMin;
  277.     System::Integer nScaleMax;
  278. } ;
  279.  
  280. struct TOleUILinkProps;
  281. typedef TOleUILinkProps *POleUILinkProps;
  282.  
  283. struct TOleUILinkProps
  284. {
  285.     System::Longint cbStruct;
  286.     System::Longint dwFlags;
  287.     System::Longint dwReserved1[2];
  288.     TFNOleUIHook lpfnHook;
  289.     System::Longint lCustData;
  290.     System::Longint dwReserved2[3];
  291.     void *lpOP;
  292. } ;
  293.  
  294. struct TOleUIObjectProps;
  295. typedef TOleUIObjectProps *POleUIObjectProps;
  296.  
  297. struct TOleUIObjectProps
  298. {
  299.     System::Longint cbStruct;
  300.     System::Longint dwFlags;
  301.     Commctrl::TPropSheetHeaderA *lpPS;
  302.     System::Longint dwObject;
  303.     IOleUIObjInfo *lpObjInfo;
  304.     System::Longint dwLink;
  305.     IOleUILinkInfo *lpLinkInfo;
  306.     TOleUIGnrlProps *lpGP;
  307.     TOleUIViewProps *lpVP;
  308.     TOleUILinkProps *lpLP;
  309. } ;
  310.  
  311. //-- var, const, procedure ---------------------------------------------------
  312. #define IDC_OLEUIHELP System::Byte(99)
  313. #define IDC_IO_CREATENEW System::Smallint(2100)
  314. #define IDC_IO_CREATEFROMFILE System::Smallint(2101)
  315. #define IDC_IO_LINKFILE System::Smallint(2102)
  316. #define IDC_IO_OBJECTTYPELIST System::Smallint(2103)
  317. #define IDC_IO_DISPLAYASICON System::Smallint(2104)
  318. #define IDC_IO_CHANGEICON System::Smallint(2105)
  319. #define IDC_IO_FILE System::Smallint(2106)
  320. #define IDC_IO_FILEDISPLAY System::Smallint(2107)
  321. #define IDC_IO_RESULTIMAGE System::Smallint(2108)
  322. #define IDC_IO_RESULTTEXT System::Smallint(2109)
  323. #define IDC_IO_ICONDISPLAY System::Smallint(2110)
  324. #define IDC_IO_OBJECTTYPETEXT System::Smallint(2111)
  325. #define IDC_IO_FILETEXT System::Smallint(2112)
  326. #define IDC_IO_FILETYPE System::Smallint(2113)
  327. #define IDC_IO_INSERTCONTROL System::Smallint(2114)
  328. #define IDC_IO_ADDCONTROL System::Smallint(2115)
  329. #define IDC_IO_CONTROLTYPELIST System::Smallint(2116)
  330. #define IDC_PS_PASTE System::Smallint(500)
  331. #define IDC_PS_PASTELINK System::Smallint(501)
  332. #define IDC_PS_SOURCETEXT System::Smallint(502)
  333. #define IDC_PS_PASTELIST System::Smallint(503)
  334. #define IDC_PS_PASTELINKLIST System::Smallint(504)
  335. #define IDC_PS_DISPLAYLIST System::Smallint(505)
  336. #define IDC_PS_DISPLAYASICON System::Smallint(506)
  337. #define IDC_PS_ICONDISPLAY System::Smallint(507)
  338. #define IDC_PS_CHANGEICON System::Smallint(508)
  339. #define IDC_PS_RESULTIMAGE System::Smallint(509)
  340. #define IDC_PS_RESULTTEXT System::Smallint(510)
  341. #define IDC_CI_GROUP System::Byte(120)
  342. #define IDC_CI_CURRENT System::Byte(121)
  343. #define IDC_CI_CURRENTICON System::Byte(122)
  344. #define IDC_CI_DEFAULT System::Byte(123)
  345. #define IDC_CI_DEFAULTICON System::Byte(124)
  346. #define IDC_CI_FROMFILE System::Byte(125)
  347. #define IDC_CI_FROMFILEEDIT System::Byte(126)
  348. #define IDC_CI_ICONLIST System::Byte(127)
  349. #define IDC_CI_LABEL System::Byte(128)
  350. #define IDC_CI_LABELEDIT System::Byte(129)
  351. #define IDC_CI_BROWSE System::Byte(130)
  352. #define IDC_CI_ICONDISPLAY System::Byte(131)
  353. #define IDC_CV_OBJECTTYPE System::Byte(150)
  354. #define IDC_CV_DISPLAYASICON System::Byte(152)
  355. #define IDC_CV_CHANGEICON System::Byte(153)
  356. #define IDC_CV_ACTIVATELIST System::Byte(154)
  357. #define IDC_CV_CONVERTTO System::Byte(155)
  358. #define IDC_CV_ACTIVATEAS System::Byte(156)
  359. #define IDC_CV_RESULTTEXT System::Byte(157)
  360. #define IDC_CV_CONVERTLIST System::Byte(158)
  361. #define IDC_CV_ICONDISPLAY System::Byte(165)
  362. #define IDC_EL_CHANGESOURCE System::Byte(201)
  363. #define IDC_EL_AUTOMATIC System::Byte(202)
  364. #define IDC_EL_CANCELLINK System::Byte(209)
  365. #define IDC_EL_UPDATENOW System::Byte(210)
  366. #define IDC_EL_OPENSOURCE System::Byte(211)
  367. #define IDC_EL_MANUAL System::Byte(212)
  368. #define IDC_EL_LINKSOURCE System::Byte(216)
  369. #define IDC_EL_LINKTYPE System::Byte(217)
  370. #define IDC_EL_LINKSLISTBOX System::Byte(206)
  371. #define IDC_EL_COL1 System::Byte(220)
  372. #define IDC_EL_COL2 System::Byte(221)
  373. #define IDC_EL_COL3 System::Byte(222)
  374. #define IDC_BZ_RETRY System::Smallint(600)
  375. #define IDC_BZ_ICON System::Smallint(601)
  376. #define IDC_BZ_MESSAGE1 System::Smallint(602)
  377. #define IDC_BZ_SWITCHTO System::Smallint(604)
  378. #define IDC_UL_METER System::Smallint(1029)
  379. #define IDC_UL_STOP System::Smallint(1030)
  380. #define IDC_UL_PERCENT System::Smallint(1031)
  381. #define IDC_UL_PROGRESS System::Smallint(1032)
  382. #define IDC_PU_LINKS System::Smallint(900)
  383. #define IDC_PU_TEXT System::Smallint(901)
  384. #define IDC_PU_CONVERT System::Smallint(902)
  385. #define IDC_PU_ICON System::Smallint(908)
  386. #define IDC_GP_OBJECTNAME System::Smallint(1009)
  387. #define IDC_GP_OBJECTTYPE System::Smallint(1010)
  388. #define IDC_GP_OBJECTSIZE System::Smallint(1011)
  389. #define IDC_GP_CONVERT System::Smallint(1013)
  390. #define IDC_GP_OBJECTICON System::Smallint(1014)
  391. #define IDC_GP_OBJECTLOCATION System::Smallint(1022)
  392. #define IDC_VP_PERCENT System::Smallint(1000)
  393. #define IDC_VP_CHANGEICON System::Smallint(1001)
  394. #define IDC_VP_EDITABLE System::Smallint(1002)
  395. #define IDC_VP_ASICON System::Smallint(1003)
  396. #define IDC_VP_RELATIVE System::Smallint(1005)
  397. #define IDC_VP_SPIN System::Smallint(1006)
  398. #define IDC_VP_SCALETXT System::Smallint(1034)
  399. #define IDC_VP_ICONDISPLAY System::Smallint(1021)
  400. #define IDC_VP_RESULTIMAGE System::Smallint(1033)
  401. #define IDC_LP_OPENSOURCE System::Smallint(1006)
  402. #define IDC_LP_UPDATENOW System::Smallint(1007)
  403. #define IDC_LP_BREAKLINK System::Smallint(1008)
  404. #define IDC_LP_LINKSOURCE System::Smallint(1012)
  405. #define IDC_LP_CHANGESOURCE System::Smallint(1015)
  406. #define IDC_LP_AUTOMATIC System::Smallint(1016)
  407. #define IDC_LP_MANUAL System::Smallint(1017)
  408. #define IDC_LP_DATE System::Smallint(1018)
  409. #define IDC_LP_TIME System::Smallint(1019)
  410. #define IDD_INSERTOBJECT System::Smallint(1000)
  411. #define IDD_CHANGEICON System::Smallint(1001)
  412. #define IDD_CONVERT System::Smallint(1002)
  413. #define IDD_PASTESPECIAL System::Smallint(1003)
  414. #define IDD_EDITLINKS System::Smallint(1004)
  415. #define IDD_BUSY System::Smallint(1006)
  416. #define IDD_UPDATELINKS System::Smallint(1007)
  417. #define IDD_CHANGESOURCE System::Smallint(1009)
  418. #define IDD_INSERTFILEBROWSE System::Smallint(1010)
  419. #define IDD_CHANGEICONBROWSE System::Smallint(1011)
  420. #define IDD_CONVERTONLY System::Smallint(1012)
  421. #define IDD_CHANGESOURCE4 System::Smallint(1013)
  422. #define IDD_GNRLPROPS System::Smallint(1100)
  423. #define IDD_VIEWPROPS System::Smallint(1101)
  424. #define IDD_LINKPROPS System::Smallint(1102)
  425. #define IDD_CANNOTUPDATELINK System::Smallint(1008)
  426. #define IDD_LINKSOURCEUNAVAILABLE System::Smallint(1020)
  427. #define IDD_SERVERNOTFOUND System::Smallint(1023)
  428. #define IDD_OUTOFMEMORY System::Smallint(1024)
  429. #define IDD_SERVERNOTREG System::Smallint(1021)
  430. #define IDD_LINKTYPECHANGED System::Smallint(1022)
  431. #define OLESTDDELIM System::Char(92)
  432. #define SZOLEUI_MSG_HELP "OLEUI_MSG_HELP"
  433. #define SZOLEUI_MSG_ENDDIALOG "OLEUI_MSG_ENDDIALOG"
  434. #define SZOLEUI_MSG_BROWSE "OLEUI_MSG_BROWSE"
  435. #define SZOLEUI_MSG_CHANGEICON "OLEUI_MSG_CHANGEICON"
  436. #define SZOLEUI_MSG_CLOSEBUSYDIALOG "OLEUI_MSG_CLOSEBUSYDIALOG"
  437. #define SZOLEUI_MSG_CONVERT "OLEUI_MSG_CONVERT"
  438. #define SZOLEUI_MSG_CHANGESOURCE "OLEUI_MSG_CHANGESOURCE"
  439. #define SZOLEUI_MSG_ADDCONTROL "OLEUI_MSG_ADDCONTROL"
  440. #define SZOLEUI_MSG_BROWSE_OFN "OLEUI_MSG_BROWSE_OFN"
  441. #define ID_BROWSE_CHANGEICON System::Byte(1)
  442. #define ID_BROWSE_INSERTFILE System::Byte(2)
  443. #define ID_BROWSE_ADDCONTROL System::Byte(3)
  444. #define ID_BROWSE_CHANGESOURCE System::Byte(4)
  445. #define OLEUI_FALSE System::Byte(0)
  446. #define OLEUI_SUCCESS System::Byte(1)
  447. #define OLEUI_OK System::Byte(1)
  448. #define OLEUI_CANCEL System::Byte(2)
  449. #define OLEUI_ERR_STANDARDMIN System::Byte(100)
  450. #define OLEUI_ERR_STRUCTURENULL System::Byte(101)
  451. #define OLEUI_ERR_STRUCTUREINVALID System::Byte(102)
  452. #define OLEUI_ERR_CBSTRUCTINCORRECT System::Byte(103)
  453. #define OLEUI_ERR_HWNDOWNERINVALID System::Byte(104)
  454. #define OLEUI_ERR_LPSZCAPTIONINVALID System::Byte(105)
  455. #define OLEUI_ERR_LPFNHOOKINVALID System::Byte(106)
  456. #define OLEUI_ERR_HINSTANCEINVALID System::Byte(107)
  457. #define OLEUI_ERR_LPSZTEMPLATEINVALID System::Byte(108)
  458. #define OLEUI_ERR_HRESOURCEINVALID System::Byte(109)
  459. #define OLEUI_ERR_FINDTEMPLATEFAILURE System::Byte(110)
  460. #define OLEUI_ERR_LOADTEMPLATEFAILURE System::Byte(111)
  461. #define OLEUI_ERR_DIALOGFAILURE System::Byte(112)
  462. #define OLEUI_ERR_LOCALMEMALLOC System::Byte(113)
  463. #define OLEUI_ERR_GLOBALMEMALLOC System::Byte(114)
  464. #define OLEUI_ERR_LOADSTRING System::Byte(115)
  465. #define OLEUI_ERR_OLEMEMALLOC System::Byte(116)
  466. #define OLEUI_ERR_STANDARDMAX System::Byte(117)
  467. #define IOF_SHOWHELP System::Byte(1)
  468. #define IOF_SELECTCREATENEW System::Byte(2)
  469. #define IOF_SELECTCREATEFROMFILE System::Byte(4)
  470. #define IOF_CHECKLINK System::Byte(8)
  471. #define IOF_CHECKDISPLAYASICON System::Byte(16)
  472. #define IOF_CREATENEWOBJECT System::Byte(32)
  473. #define IOF_CREATEFILEOBJECT System::Byte(64)
  474. #define IOF_CREATELINKOBJECT System::Byte(128)
  475. #define IOF_DISABLELINK System::Smallint(256)
  476. #define IOF_VERIFYSERVERSEXIST System::Smallint(512)
  477. #define IOF_DISABLEDISPLAYASICON System::Smallint(1024)
  478. #define IOF_HIDECHANGEICON System::Smallint(2048)
  479. #define IOF_SHOWINSERTCONTROL System::Smallint(4096)
  480. #define IOF_SELECTCREATECONTROL System::Smallint(8192)
  481. #define OLEUI_IOERR_LPSZFILEINVALID System::Byte(117)
  482. #define OLEUI_IOERR_LPSZLABELINVALID System::Byte(118)
  483. #define OLEUI_IOERR_HICONINVALID System::Byte(119)
  484. #define OLEUI_IOERR_LPFORMATETCINVALID System::Byte(120)
  485. #define OLEUI_IOERR_PPVOBJINVALID System::Byte(121)
  486. #define OLEUI_IOERR_LPIOLECLIENTSITEINVALID System::Byte(122)
  487. #define OLEUI_IOERR_LPISTORAGEINVALID System::Byte(123)
  488. #define OLEUI_IOERR_SCODEHASERROR System::Byte(124)
  489. #define OLEUI_IOERR_LPCLSIDEXCLUDEINVALID System::Byte(125)
  490. #define OLEUI_IOERR_CCHFILEINVALID System::Byte(126)
  491. #define OLEUIPASTE_ENABLEICON System::Smallint(2048)
  492. #define OLEUIPASTE_PASTEONLY System::Byte(0)
  493. #define OLEUIPASTE_PASTE System::Smallint(512)
  494. #define OLEUIPASTE_LINKANYTYPE System::Smallint(1024)
  495. #define OLEUIPASTE_LINKTYPE1 System::Byte(1)
  496. #define OLEUIPASTE_LINKTYPE2 System::Byte(2)
  497. #define OLEUIPASTE_LINKTYPE3 System::Byte(4)
  498. #define OLEUIPASTE_LINKTYPE4 System::Byte(8)
  499. #define OLEUIPASTE_LINKTYPE5 System::Byte(16)
  500. #define OLEUIPASTE_LINKTYPE6 System::Byte(32)
  501. #define OLEUIPASTE_LINKTYPE7 System::Byte(64)
  502. #define OLEUIPASTE_LINKTYPE8 System::Byte(128)
  503. #define PS_MAXLINKTYPES System::Byte(8)
  504. #define PSF_SHOWHELP System::Byte(1)
  505. #define PSF_SELECTPASTE System::Byte(2)
  506. #define PSF_SELECTPASTELINK System::Byte(4)
  507. #define PSF_CHECKDISPLAYASICON System::Byte(8)
  508. #define PSF_DISABLEDISPLAYASICON System::Byte(16)
  509. #define PSF_HIDECHANGEICON System::Byte(32)
  510. #define PSF_STAYONCLIPBOARDCHANGE System::Byte(64)
  511. #define PSF_NOREFRESHDATAOBJECT System::Byte(128)
  512. #define OLEUI_IOERR_SRCDATAOBJECTINVALID System::Byte(117)
  513. #define OLEUI_IOERR_ARRPASTEENTRIESINVALID System::Byte(118)
  514. #define OLEUI_IOERR_ARRLINKTYPESINVALID System::Byte(119)
  515. #define OLEUI_PSERR_CLIPBOARDCHANGED System::Byte(120)
  516. #define OLEUI_PSERR_GETCLIPBOARDFAILED System::Byte(121)
  517. #define OLEUI_ELERR_LINKCNTRNULL System::Byte(117)
  518. #define OLEUI_ELERR_LINKCNTRINVALID System::Byte(118)
  519. #define ELF_SHOWHELP System::Byte(1)
  520. #define ELF_DISABLEUPDATENOW System::Byte(2)
  521. #define ELF_DISABLEOPENSOURCE System::Byte(4)
  522. #define ELF_DISABLECHANGESOURCE System::Byte(8)
  523. #define ELF_DISABLECANCELLINK System::Byte(16)
  524. #define CIF_SHOWHELP System::Byte(1)
  525. #define CIF_SELECTCURRENT System::Byte(2)
  526. #define CIF_SELECTDEFAULT System::Byte(4)
  527. #define CIF_SELECTFROMFILE System::Byte(8)
  528. #define CIF_USEICONEXE System::Byte(16)
  529. #define OLEUI_CIERR_MUSTHAVECLSID System::Byte(117)
  530. #define OLEUI_CIERR_MUSTHAVECURRENTMETAFILE System::Byte(118)
  531. #define OLEUI_CIERR_SZICONEXEINVALID System::Byte(119)
  532. #define PROP_HWND_CHGICONDLG "HWND_CIDLG"
  533. #define CF_SHOWHELPBUTTON System::Byte(1)
  534. #define CF_SETCONVERTDEFAULT System::Byte(2)
  535. #define CF_SETACTIVATEDEFAULT System::Byte(4)
  536. #define CF_SELECTCONVERTTO System::Byte(8)
  537. #define CF_SELECTACTIVATEAS System::Byte(16)
  538. #define CF_DISABLEDISPLAYASICON System::Byte(32)
  539. #define CF_DISABLEACTIVATEAS System::Byte(64)
  540. #define CF_HIDECHANGEICON System::Byte(128)
  541. #define CF_CONVERTONLY System::Smallint(256)
  542. #define OLEUI_CTERR_CLASSIDINVALID System::Byte(118)
  543. #define OLEUI_CTERR_DVASPECTINVALID System::Byte(119)
  544. #define OLEUI_CTERR_CBFORMATINVALID System::Byte(120)
  545. #define OLEUI_CTERR_HMETAPICTINVALID System::Byte(121)
  546. #define OLEUI_CTERR_STRINGINVALID System::Byte(122)
  547. #define BZ_DISABLECANCELBUTTON System::Byte(1)
  548. #define BZ_DISABLESWITCHTOBUTTON System::Byte(2)
  549. #define BZ_DISABLERETRYBUTTON System::Byte(4)
  550. #define BZ_NOTRESPONDINGDIALOG System::Byte(8)
  551. #define OLEUI_BZERR_HTASKINVALID System::Byte(117)
  552. #define OLEUI_BZ_SWITCHTOSELECTED System::Byte(118)
  553. #define OLEUI_BZ_RETRYSELECTED System::Byte(119)
  554. #define OLEUI_BZ_CALLUNBLOCKED System::Byte(120)
  555. #define VPF_SELECTRELATIVE System::Byte(1)
  556. #define VPF_DISABLERELATIVE System::Byte(2)
  557. #define VPF_DISABLESCALE System::Byte(4)
  558. #define OPF_OBJECTISLINK System::Byte(1)
  559. #define OPF_NOFILLDEFAULT System::Byte(2)
  560. #define OPF_SHOWHELP System::Byte(4)
  561. #define OPF_DISABLECONVERT System::Byte(8)
  562. #define OLEUI_OPERR_SUBPROPNULL System::Byte(117)
  563. #define OLEUI_OPERR_SUBPROPINVALID System::Byte(118)
  564. #define OLEUI_OPERR_PROPSHEETNULL System::Byte(119)
  565. #define OLEUI_OPERR_PROPSHEETINVALID System::Byte(120)
  566. #define OLEUI_OPERR_SUPPROP System::Byte(121)
  567. #define OLEUI_OPERR_PROPSINVALID System::Byte(122)
  568. #define OLEUI_OPERR_PAGESINCORRECT System::Byte(123)
  569. #define OLEUI_OPERR_INVALIDPAGES System::Byte(124)
  570. #define OLEUI_OPERR_NOTSUPPORTED System::Byte(125)
  571. #define OLEUI_OPERR_DLGPROCNOTNULL System::Byte(126)
  572. #define OLEUI_OPERR_LPARAMNOTZERO System::Byte(127)
  573. #define OLEUI_GPERR_STRINGINVALID System::Byte(128)
  574. #define OLEUI_GPERR_CLASSIDINVALID System::Byte(129)
  575. #define OLEUI_GPERR_LPCLSIDEXCLUDEINVALID System::Byte(130)
  576. #define OLEUI_GPERR_CBFORMATINVALID System::Byte(131)
  577. #define OLEUI_VPERR_METAPICTINVALID System::Byte(132)
  578. #define OLEUI_VPERR_DVASPECTINVALID System::Byte(133)
  579. #define OLEUI_LPERR_LINKCNTRNULL System::Byte(134)
  580. #define OLEUI_LPERR_LINKCNTRINVALID System::Byte(135)
  581. #define OLEUI_OPERR_PROPERTYSHEET System::Byte(136)
  582. #define OLEUI_QUERY_GETCLASSID System::Integer(65280)
  583. #define OLEUI_QUERY_LINKBROKEN System::Integer(65281)
  584. extern "C" System::LongBool __stdcall OleUIAddVerbMenu(Ole2::IOleObject *oleObj, System::PChar pszShortType
  585.     , System::Integer menu, System::Integer uPos, System::Integer uIDVerbMin, System::Integer uIDVerbMax
  586.     , System::LongBool bAddConvert, System::Integer idConvert, System::Integer &outMenu);
  587. extern "C" System::Integer __stdcall OleUIInsertObject(TOleUIInsertObject &Info);
  588. extern "C" System::Integer __stdcall OleUIPasteSpecial(TOleUIPasteSpecial &Info);
  589. extern "C" System::Integer __stdcall OleUIEditLinks(TOleUIEditLinks &Info);
  590. extern "C" System::Integer __stdcall OleUIChangeIcon(TOleUIChangeIcon &Info);
  591. extern "C" System::Integer __stdcall OleUIConvert(TOleUIConvert &Info);
  592. extern "C" System::LongBool __stdcall OleUICanConvertOrActivateAs(const Ole2::TGUID &clsid, System::LongBool 
  593.     fIsLinkedObject, System::Word wFormat);
  594. extern "C" System::Integer __stdcall OleUIBusy(TOleUIBusy &Info);
  595. extern "C" System::Integer __stdcall OleUIObjectProperties(TOleUIObjectProps &Info);
  596. inline System::Integer __stdcall OleUIObjectProperties(TOleUIObjectProps &Info)
  597. {
  598.     return OleUIObjectProperties(Info);
  599. }
  600.  
  601. inline System::Integer __stdcall OleUIBusy(TOleUIBusy &Info)
  602. {
  603.     return OleUIBusy(Info);
  604. }
  605.  
  606. inline System::Integer __stdcall OleUIConvert(TOleUIConvert &Info)
  607. {
  608.     return OleUIConvert(Info);
  609. }
  610.  
  611. inline System::Integer __stdcall OleUIChangeIcon(TOleUIChangeIcon &Info)
  612. {
  613.     return OleUIChangeIcon(Info);
  614. }
  615.  
  616. inline System::Integer __stdcall OleUIEditLinks(TOleUIEditLinks &Info)
  617. {
  618.     return OleUIEditLinks(Info);
  619. }
  620.  
  621. inline System::Integer __stdcall OleUIPasteSpecial(TOleUIPasteSpecial &Info)
  622. {
  623.     return OleUIPasteSpecial(Info);
  624. }
  625.  
  626. inline System::Integer __stdcall OleUIInsertObject(TOleUIInsertObject &Info)
  627. {
  628.     return OleUIInsertObject(Info);
  629. }
  630.  
  631. inline System::LongBool __stdcall OleUIAddVerbMenu(Ole2::IOleObject *oleObj, System::PChar pszShortType
  632.     , System::Integer menu, System::Integer uPos, System::Integer uIDVerbMin, System::Integer uIDVerbMax
  633.     , System::LongBool bAddConvert, System::Integer idConvert, System::Integer &outMenu)
  634. {
  635.     return OleUIAddVerbMenu(oleObj, pszShortType, menu, uPos, uIDVerbMin, uIDVerbMax, bAddConvert, idConvert
  636.         , outMenu);
  637. }
  638.  
  639.  
  640. }    /* namespace Oledlg */
  641. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  642. using namespace Oledlg;
  643. #endif
  644. //-- end unit ----------------------------------------------------------------
  645. #endif    // OleDlg
  646.