home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 November / Chip_2002-11_cd1.bin / zkuste / vbasic / Data / Utils / WME71SDK.exe / RCDATA / CABINET / mspropshell.idl < prev    next >
Text File  |  2000-06-08  |  7KB  |  147 lines

  1. // MSPropShell.idl : IDL source for MSPropShell.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (MSPropShell.tlb) and marshalling code.
  6.  
  7. import "oaidl.idl";
  8. import "ocidl.idl";
  9. #include "olectl.h"
  10.  
  11. //
  12. // GUIDs
  13. //
  14. cpp_quote( "EXTERN_GUID( LIBID_MSPROPSHELLLib,      0xC4941F47, 0x8BC1, 0x49D3, 0x99, 0x89, 0x2B, 0x78, 0x26, 0xF2, 0x6A, 0xE6 );" )
  15. cpp_quote( "EXTERN_GUID( DIID__IMSPropShellEvents,  0xDF8AD1EA, 0xFCAA, 0x4455, 0x87, 0x72, 0xB4, 0xF5, 0x39, 0x48, 0x8E, 0xE3 );" )
  16. cpp_quote( "EXTERN_GUID( CLSID_MSPropShell,         0xE297AB5E, 0x40B0, 0x41BD, 0x9E, 0x06, 0xE4, 0x14, 0x40, 0x84, 0xEE, 0x5F );" )
  17. cpp_quote( "EXTERN_GUID( IID_IMSPropShell,          0x119338AA, 0xF278, 0x47CC, 0x9F, 0x88, 0x50, 0x0E, 0x86, 0x51, 0x0B, 0x66 );" )
  18. cpp_quote( "EXTERN_GUID( IID_IMSPropPage,           0x24DB76A0, 0x2A25, 0x48BE, 0xB4, 0x0B, 0x67, 0xC0, 0x99, 0x63, 0x61, 0x4C );" )
  19. cpp_quote( "EXTERN_GUID( IID_IMSPropPageSite,       0x8E849609, 0xC7E8, 0x4EC7, 0x8B, 0xD3, 0xD5, 0x5E, 0x87, 0x1A, 0x34, 0x0D );" )
  20.  
  21.     typedef
  22.     [
  23.         uuid(C3003841-7A40-4091-8B96-996910610EB9),
  24.         helpstring("Enumeration type defining the tab style for a property page."),
  25.     ]
  26.     enum PSSTYLE
  27.     {
  28.         [helpstring("Indicates that property pages have no tabs.")]                    pssNoTabs       = 0x0000,
  29.         [helpstring("Indicates that property pages have tabs along the top edge.")]    pssTabsTop      = 0x0001,
  30.         [helpstring("Indicates that property pages have tabs along the bottom edge.")] pssTabsBottom   = 0x0002
  31.     } PSSTYLE;
  32.  
  33.     [
  34.         object,
  35.         uuid(119338AA-F278-47CC-9F88-500E86510B66),
  36.         dual,
  37.         helpstring("Manages property page objects."),
  38.         pointer_default(unique)
  39.     ]
  40.     interface IMSPropShell : IDispatch
  41.     {
  42.         [id(1), helpstring("Adds a property page to the control.")] 
  43.         HRESULT AddPage([in] LPUNKNOWN pUnknown);
  44.         [id(2), helpstring("Retrieves a specific property page.")] 
  45.         HRESULT GetPage([in] long Index, [out, retval] LPUNKNOWN *ppUnknown);
  46.         [id(3), helpstring("Removes all of the property pages from the control.")] 
  47.         HRESULT RemoveAllPages();
  48.         [id(4), helpstring("Adds an object to the control that is referenced by all of the property pages.")] 
  49.         HRESULT AddObject([in] LPUNKNOWN pUnknown);
  50.         [id(5), helpstring("Removes all referenced objects from the control.")] 
  51.         HRESULT RemoveAllObjects();
  52.         [id(6), helpstring("Tells all property pages to apply any changes to their referenced objects.")] 
  53.         HRESULT Apply();
  54.         [id(7), helpstring("Refreshes all of the propety page and referenced object relationships.")] 
  55.         HRESULT Refresh();
  56.         [propget, id(8), helpstring("Retrieves the number of property pages in the control.")] 
  57.         HRESULT PageCount([out, retval] long *pVal);
  58.         [propget, id(9), helpstring("Indicates whether to call the Refresh method after adding or removing property pages or referenced objects.")] 
  59.         HRESULT AutoRefresh([out, retval] VARIANT_BOOL *pVal);
  60.         [propput, id(9), helpstring("Indicates whether to call the Refresh method after adding or removing property pages or referenced objects.")] 
  61.         HRESULT AutoRefresh([in] VARIANT_BOOL newVal);
  62.         [propget, id(10), helpstring("Specifies and retrieves the index of the currently active property page.")] 
  63.         HRESULT PageIndex([out, retval] long *pVal);
  64.         [propput, id(10), helpstring("Specifies and retrieves the index of the currently active property page.")] 
  65.         HRESULT PageIndex([in] long newVal);
  66.         [propget, id(11), helpstring("Indicates the visual appearance of the control.")] 
  67.         HRESULT Style([out, retval] PSSTYLE *pVal);
  68.         [propput, id(11), helpstring("Indicates the visual appearance of the control.")] 
  69.         HRESULT Style([in] PSSTYLE newVal);
  70.         [propget, id(12), helpstring("Specifies and retrieves the national language used in the property pages.")] 
  71.         HRESULT LocaleID([out, retval] long *pVal);
  72.         [propput, id(12), helpstring("Specifies and retrieves the national language used in the property pages.")] 
  73.         HRESULT LocaleID([in] long newVal);
  74.         [propget, id(13), helpstring("Retrieves the index number of the property page being applied during the Apply method.")] 
  75.         HRESULT ApplyIndex([out, retval] long *pVal);
  76.         [propget, id(14), helpstring("Indicates whether the property pages hosted by the control should initialize themselves to a new state.")] 
  77.         HRESULT InitNew([out, retval] VARIANT_BOOL *pVal);
  78.         [propput, id(14), helpstring("Indicates whether the property pages hosted by the control should initialize themselves to a new state.")] 
  79.         HRESULT InitNew([in] VARIANT_BOOL newVal);
  80.         [propget, id(15), helpstring("Specifies and retrieves the width of the property page tabs.")] 
  81.         HRESULT TabWidth([out, retval] short *pVal);
  82.         [propput, id(15), helpstring("Specifies and retrieves the width of the property page tabs.")] 
  83.         HRESULT TabWidth([in] short newVal);
  84.         [propget, id(16), helpstring("Retrieves the title of a specific property page.")] 
  85.         HRESULT PageTitle([in] long Index, [out, retval] BSTR *pbstrTitle );
  86.         [propget, id(17), helpstring("Indicates whether help is available for a specific page.")] 
  87.         HRESULT PageHasHelp([in] long Index, [out, retval] VARIANT_BOOL *pVal );
  88.         [id(18), helpstring("Displays help for a specific property page.")] HRESULT ShowPageHelp( [in] long Index );
  89.     };
  90.  
  91.     [
  92.         object,
  93.         uuid(24DB76A0-2A25-48BE-B40B-67C09963614C),
  94.         helpstring("IMSPropPage Interface"),
  95.         pointer_default(unique)
  96.     ]
  97.     interface IMSPropPage : IPropertyPage
  98.     {
  99.         HRESULT IsPageValid();
  100.     };
  101.  
  102.     [
  103.         object,
  104.         uuid(8E849609-C7E8-4EC7-8BD3-D55E871A340D),
  105.         helpstring("Extended IPropertyPageSite Interface"),
  106.         pointer_default(unique)
  107.     ]
  108.     interface IMSPropPageSite : IPropertyPageSite
  109.     {
  110.         HRESULT GetInitNew( BOOL *pVal );
  111.     };
  112.  
  113. [
  114.     uuid(C4941F47-8BC1-49D3-9989-2B7826F26AE6),
  115.     version(1.0),
  116.     helpstring("Microsoft PropShell Control 1.0")
  117. ]
  118. library MSPROPSHELLLib
  119. {
  120.     importlib("stdole32.tlb");
  121.     importlib("stdole2.tlb");
  122.  
  123.     [
  124.         uuid(DF8AD1EA-FCAA-4455-8772-B4F539488EE3),
  125.         helpstring("Receives event notifications from the property page control.")
  126.     ]
  127.     dispinterface _IMSPropShellEvents
  128.     {
  129.         properties:
  130.         methods:
  131.         [id(1), helpstring("Specifies that a new page is about to become active.")] 
  132.         HRESULT OnPageChanging([in] long Index, [in, out] VARIANT_BOOL *bAllow);
  133.         [id(2), helpstring("Specifies that a new page has become active.")] 
  134.         HRESULT OnPageChanged([in] long Index);
  135.     };
  136.  
  137.     [
  138.         uuid(E297AB5E-40B0-41BD-9E06-E4144084EE5F),
  139.         helpstring("MSPropShell Control Class")
  140.     ]
  141.     coclass MSPropShell
  142.     {
  143.         [default] interface IMSPropShell;
  144.         [default, source] dispinterface _IMSPropShellEvents;
  145.     };
  146. };
  147.