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