1 /************************************************************
5 #ifndef __WINE_WINE_OBJ_ISHELLBROWSER_H
6 #define __WINE_WINE_OBJ_ISHELLBROWSER_H
10 #include "wine/obj_base.h"
11 #include "wine/obj_inplace.h" /* IOleWindow */
12 #include "wine/obj_shellview.h" /* IShellView */
13 #include "commctrl.h" /* TBBUTTON */
17 #endif /* defined(__cplusplus) */
19 /* it's ok commented out, see obj_shellview.h
20 typedef struct IShellBrowser IShellBrowser, *LPSHELLBROWSER;
23 DEFINE_SHLGUID(IID_IShellBrowser, 0x000214E2L, 0, 0);
24 #define SID_SShellBrowser IID_IShellBrowser
26 /* targets for GetWindow/SendControlMsg */
27 #define FCW_STATUS 0x0001
28 #define FCW_TOOLBAR 0x0002
29 #define FCW_TREE 0x0003
30 #define FCW_INTERNETBAR 0x0006
31 #define FCW_PROGRESS 0x0008
33 /* wFlags for BrowseObject*/
34 #define SBSP_DEFBROWSER 0x0000
35 #define SBSP_SAMEBROWSER 0x0001
36 #define SBSP_NEWBROWSER 0x0002
38 #define SBSP_DEFMODE 0x0000
39 #define SBSP_OPENMODE 0x0010
40 #define SBSP_EXPLOREMODE 0x0020
42 #define SBSP_ABSOLUTE 0x0000
43 #define SBSP_RELATIVE 0x1000
44 #define SBSP_PARENT 0x2000
45 #define SBSP_NAVIGATEBACK 0x4000
46 #define SBSP_NAVIGATEFORWARD 0x8000
48 #define SBSP_ALLOW_AUTONAVIGATE 0x10000
50 #define SBSP_INITIATEDBYHLINKFRAME 0x80000000
51 #define SBSP_REDIRECT 0x40000000
52 #define SBSP_WRITENOHISTORY 0x08000000
54 /* uFlage for SetToolbarItems */
55 #define FCT_MERGE 0x0001
56 #define FCT_CONFIGABLE 0x0002
57 #define FCT_ADDTOEND 0x0004
59 /* undocumented, found in the web posted by Chris Becke */
60 #define CWM_SETPATH (WM_USER+2)
61 #define CWM_WANTIDLE (WM_USER+3)
62 #define CWM_GETSETCURRENTINFO (WM_USER+4)
63 #define CWM_SELECTITEM (WM_USER+5)
64 #define CWM_STOPWAITING (WM_USER+6)
65 #define CWM_GETISHELLBROWSER (WM_USER+7)
67 #define ICOM_INTERFACE IShellBrowser
68 #define IShellBrowser_METHODS \
69 ICOM_METHOD2(HRESULT, InsertMenusSB, HMENU, hmenuShared, LPOLEMENUGROUPWIDTHS, lpMenuWidths) \
70 ICOM_METHOD3(HRESULT, SetMenuSB, HMENU, hmenuShared, HOLEMENU, holemenuReserved, HWND, hwndActiveObject) \
71 ICOM_METHOD1(HRESULT, RemoveMenusSB, HMENU, hmenuShared) \
72 ICOM_METHOD1(HRESULT, SetStatusTextSB, LPCOLESTR, lpszStatusText) \
73 ICOM_METHOD1(HRESULT, EnableModelessSB, BOOL, fEnable) \
74 ICOM_METHOD2(HRESULT, TranslateAcceleratorSB, LPMSG, lpmsg, WORD, wID) \
75 ICOM_METHOD2(HRESULT, BrowseObject, LPCITEMIDLIST, pidl, UINT, wFlags) \
76 ICOM_METHOD2(HRESULT, GetViewStateStream, DWORD, grfMode, LPSTREAM*, ppStrm) \
77 ICOM_METHOD2(HRESULT, GetControlWindow, UINT, id, HWND*, lphwnd) \
78 ICOM_METHOD5(HRESULT, SendControlMsg, UINT, id, UINT, uMsg, WPARAM, wParam, LPARAM, lParam, LRESULT*, pret) \
79 ICOM_METHOD1(HRESULT, QueryActiveShellView, IShellView**, IShellView) \
80 ICOM_METHOD1(HRESULT, OnViewWindowActive, IShellView*, IShellView) \
81 ICOM_METHOD3(HRESULT, SetToolbarItems, LPTBBUTTON, lpButtons, UINT, nButtons, UINT, uFlags)
82 #define IShellBrowser_IMETHODS \
85 ICOM_DEFINE(IShellBrowser,IOleWindow)
88 #ifdef ICOM_CINTERFACE
89 #define IShellBrowser_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
90 #define IShellBrowser_AddRef(p) ICOM_CALL(AddRef,p)
91 #define IShellBrowser_Release(p) ICOM_CALL(Release,p)
92 #define IShellBrowser_GetWindow(p,a) ICOM_CALL1(GetWindow,p,a)
93 #define IShellBrowser_ContextSensitiveHelp(p,a) ICOM_CALL1(ContextSensitiveHelp,p,a)
94 #define IShellBrowser_InsertMenusSB(p,a,b) ICOM_CALL2(InsertMenusSB,p,a,b)
95 #define IShellBrowser_SetMenuSB(p,a,b,c) ICOM_CALL3(SetMenuSB,p,a,b,c)
96 #define IShellBrowser_RemoveMenusSB(p,a) ICOM_CALL1(RemoveMenusSB,p,a)
97 #define IShellBrowser_SetStatusTextSB(p,a) ICOM_CALL1(SetStatusTextSB,p,a)
98 #define IShellBrowser_EnableModelessSB(p,a) ICOM_CALL1(EnableModelessSB,p,a)
99 #define IShellBrowser_TranslateAcceleratorSB(p,a,b) ICOM_CALL2(TranslateAcceleratorSB,p,a,b)
100 #define IShellBrowser_BrowseObject(p,a,b) ICOM_CALL2(BrowseObject,p,a,b)
101 #define IShellBrowser_GetViewStateStream(p,a,b) ICOM_CALL2(GetViewStateStream,p,a,b)
102 #define IShellBrowser_GetControlWindow(p,a,b) ICOM_CALL2(GetControlWindow,p,a,b)
103 #define IShellBrowser_SendControlMsg(p,a,b,c,d,e) ICOM_CALL5(SendControlMsg,p,a,b,c,d,e)
104 #define IShellBrowser_QueryActiveShellView(p,a) ICOM_CALL1(QueryActiveShellView,p,a)
105 #define IShellBrowser_OnViewWindowActive(p,a) ICOM_CALL1(OnViewWindowActive,p,a)
106 #define IShellBrowser_SetToolbarItems(p,a,b,c) ICOM_CALL3(SetToolbarItems,p,a,b,c)
111 #endif /* defined(__cplusplus) */
113 #endif /* __WINE_WINE_OBJ_ISHELLBROWSER_H */