| 1 | /* $Id: obj_shellbrowser.h,v 1.7 2000-11-06 19:50:04 sandervl Exp $ */
|
|---|
| 2 | /************************************************************
|
|---|
| 3 | * IShellBrowser
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | #ifndef __WINE_WINE_OBJ_SHELLBROWSER_H
|
|---|
| 7 | #define __WINE_WINE_OBJ_SHELLBROWSER_H
|
|---|
| 8 |
|
|---|
| 9 | #include "winbase.h"
|
|---|
| 10 | #include "winuser.h"
|
|---|
| 11 | #include "wine/obj_base.h"
|
|---|
| 12 | #include "wine/obj_inplace.h" /* IOleWindow */
|
|---|
| 13 | #include "wine/obj_shellview.h" /* IShellView */
|
|---|
| 14 | #include "commctrl.h" /* TBBUTTON */
|
|---|
| 15 |
|
|---|
| 16 | #ifdef __cplusplus
|
|---|
| 17 | extern "C" {
|
|---|
| 18 | #endif /* defined(__cplusplus) */
|
|---|
| 19 |
|
|---|
| 20 | /* it's ok commented out, see obj_shellview.h
|
|---|
| 21 | typedef struct IShellBrowser IShellBrowser, *LPSHELLBROWSER;
|
|---|
| 22 | */
|
|---|
| 23 |
|
|---|
| 24 | #define SID_SShellBrowser IID_IShellBrowser
|
|---|
| 25 |
|
|---|
| 26 | DEFINE_GUID(SID_STopLevelBrowser, 0x4C96BE40L, 0x915C, 0x11CF, 0x99, 0xD3, 0x00, 0xAA, 0x00, 0x4A, 0xE8, 0x37);
|
|---|
| 27 |
|
|---|
| 28 | /* targets for GetWindow/SendControlMsg */
|
|---|
| 29 | #define FCW_STATUS 0x0001
|
|---|
| 30 | #define FCW_TOOLBAR 0x0002
|
|---|
| 31 | #define FCW_TREE 0x0003
|
|---|
| 32 | #define FCW_INTERNETBAR 0x0006
|
|---|
| 33 | #define FCW_PROGRESS 0x0008
|
|---|
| 34 |
|
|---|
| 35 | /* wFlags for BrowseObject*/
|
|---|
| 36 | #define SBSP_DEFBROWSER 0x0000
|
|---|
| 37 | #define SBSP_SAMEBROWSER 0x0001
|
|---|
| 38 | #define SBSP_NEWBROWSER 0x0002
|
|---|
| 39 |
|
|---|
| 40 | #define SBSP_DEFMODE 0x0000
|
|---|
| 41 | #define SBSP_OPENMODE 0x0010
|
|---|
| 42 | #define SBSP_EXPLOREMODE 0x0020
|
|---|
| 43 |
|
|---|
| 44 | #define SBSP_ABSOLUTE 0x0000
|
|---|
| 45 | #define SBSP_RELATIVE 0x1000
|
|---|
| 46 | #define SBSP_PARENT 0x2000
|
|---|
| 47 | #define SBSP_NAVIGATEBACK 0x4000
|
|---|
| 48 | #define SBSP_NAVIGATEFORWARD 0x8000
|
|---|
| 49 |
|
|---|
| 50 | #define SBSP_ALLOW_AUTONAVIGATE 0x10000
|
|---|
| 51 |
|
|---|
| 52 | #define SBSP_INITIATEDBYHLINKFRAME 0x80000000
|
|---|
| 53 | #define SBSP_REDIRECT 0x40000000
|
|---|
| 54 | #define SBSP_WRITENOHISTORY 0x08000000
|
|---|
| 55 |
|
|---|
| 56 | /* uFlage for SetToolbarItems */
|
|---|
| 57 | #define FCT_MERGE 0x0001
|
|---|
| 58 | #define FCT_CONFIGABLE 0x0002
|
|---|
| 59 | #define FCT_ADDTOEND 0x0004
|
|---|
| 60 |
|
|---|
| 61 | #define ICOM_INTERFACE IShellBrowser
|
|---|
| 62 | #define IShellBrowser_METHODS \
|
|---|
| 63 | ICOM_METHOD2(HRESULT, InsertMenusSB, HMENU, hmenuShared, LPOLEMENUGROUPWIDTHS, lpMenuWidths) \
|
|---|
| 64 | ICOM_METHOD3(HRESULT, SetMenuSB, HMENU, hmenuShared, HOLEMENU, holemenuReserved, HWND, hwndActiveObject) \
|
|---|
| 65 | ICOM_METHOD1(HRESULT, RemoveMenusSB, HMENU, hmenuShared) \
|
|---|
| 66 | ICOM_METHOD1(HRESULT, SetStatusTextSB, LPCOLESTR, lpszStatusText) \
|
|---|
| 67 | ICOM_METHOD1(HRESULT, EnableModelessSB, BOOL, fEnable) \
|
|---|
| 68 | ICOM_METHOD2(HRESULT, TranslateAcceleratorSB, LPMSG, lpmsg, WORD, wID) \
|
|---|
| 69 | ICOM_METHOD2(HRESULT, BrowseObject, LPCITEMIDLIST, pidl, UINT, wFlags) \
|
|---|
| 70 | ICOM_METHOD2(HRESULT, GetViewStateStream, DWORD, grfMode, LPSTREAM*, ppStrm) \
|
|---|
| 71 | ICOM_METHOD2(HRESULT, GetControlWindow, UINT, id, HWND*, lphwnd) \
|
|---|
| 72 | ICOM_METHOD5(HRESULT, SendControlMsg, UINT, id, UINT, uMsg, WPARAM, wParam, LPARAM, lParam, LRESULT*, pret) \
|
|---|
| 73 | ICOM_METHOD1(HRESULT, QueryActiveShellView, IShellView**, IShellView) \
|
|---|
| 74 | ICOM_METHOD1(HRESULT, OnViewWindowActive, IShellView*, IShellView) \
|
|---|
| 75 | ICOM_METHOD3(HRESULT, SetToolbarItems, LPTBBUTTON, lpButtons, UINT, nButtons, UINT, uFlags)
|
|---|
| 76 | #define IShellBrowser_IMETHODS \
|
|---|
| 77 | IOleWindow_IMETHODS \
|
|---|
| 78 | IShellBrowser_METHODS
|
|---|
| 79 | ICOM_DEFINE(IShellBrowser,IOleWindow)
|
|---|
| 80 | #undef ICOM_INTERFACE
|
|---|
| 81 |
|
|---|
| 82 | #ifdef ICOM_CINTERFACE
|
|---|
| 83 | /*** IUnknown methods ***/
|
|---|
| 84 | #define IShellBrowser_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|---|
| 85 | #define IShellBrowser_AddRef(p) ICOM_CALL(AddRef,p)
|
|---|
| 86 | #define IShellBrowser_Release(p) ICOM_CALL(Release,p)
|
|---|
| 87 | /*** IShellBrowser methods ***/
|
|---|
| 88 | #define IShellBrowser_GetWindow(p,a) ICOM_CALL1(GetWindow,p,a)
|
|---|
| 89 | #define IShellBrowser_ContextSensitiveHelp(p,a) ICOM_CALL1(ContextSensitiveHelp,p,a)
|
|---|
| 90 | #define IShellBrowser_InsertMenusSB(p,a,b) ICOM_CALL2(InsertMenusSB,p,a,b)
|
|---|
| 91 | #define IShellBrowser_SetMenuSB(p,a,b,c) ICOM_CALL3(SetMenuSB,p,a,b,c)
|
|---|
| 92 | #define IShellBrowser_RemoveMenusSB(p,a) ICOM_CALL1(RemoveMenusSB,p,a)
|
|---|
| 93 | #define IShellBrowser_SetStatusTextSB(p,a) ICOM_CALL1(SetStatusTextSB,p,a)
|
|---|
| 94 | #define IShellBrowser_EnableModelessSB(p,a) ICOM_CALL1(EnableModelessSB,p,a)
|
|---|
| 95 | #define IShellBrowser_TranslateAcceleratorSB(p,a,b) ICOM_CALL2(TranslateAcceleratorSB,p,a,b)
|
|---|
| 96 | #define IShellBrowser_BrowseObject(p,a,b) ICOM_CALL2(BrowseObject,p,a,b)
|
|---|
| 97 | #define IShellBrowser_GetViewStateStream(p,a,b) ICOM_CALL2(GetViewStateStream,p,a,b)
|
|---|
| 98 | #define IShellBrowser_GetControlWindow(p,a,b) ICOM_CALL2(GetControlWindow,p,a,b)
|
|---|
| 99 | #define IShellBrowser_SendControlMsg(p,a,b,c,d,e) ICOM_CALL5(SendControlMsg,p,a,b,c,d,e)
|
|---|
| 100 | #define IShellBrowser_QueryActiveShellView(p,a) ICOM_CALL1(QueryActiveShellView,p,a)
|
|---|
| 101 | #define IShellBrowser_OnViewWindowActive(p,a) ICOM_CALL1(OnViewWindowActive,p,a)
|
|---|
| 102 | #define IShellBrowser_SetToolbarItems(p,a,b,c) ICOM_CALL3(SetToolbarItems,p,a,b,c)
|
|---|
| 103 | #endif
|
|---|
| 104 |
|
|---|
| 105 | #ifdef __cplusplus
|
|---|
| 106 | } /* extern "C" */
|
|---|
| 107 | #endif /* defined(__cplusplus) */
|
|---|
| 108 |
|
|---|
| 109 | #endif /* __WINE_WINE_OBJ_SHELLBROWSER_H */
|
|---|