ReactOS  0.4.12-dev-375-g61fed54
tooldock.h
Go to the documentation of this file.
1 
2 typedef enum
3 {
4  TOP_DOCK = 0,
10 
11 typedef struct _DOCKBAR
12 {
17 } DOCKBAR, *PDOCKBAR;
18 
19 struct _TOOLBAR_DOCKS;
20 
21 typedef BOOL (CALLBACK *PDOCKBAR_CREATECLIENT)(struct _TOOLBAR_DOCKS *TbDocks,
22  const DOCKBAR *Dockbar,
23  PVOID Context,
24  HWND hParent,
25  HWND *hwnd);
27  const DOCKBAR *Dockbar,
28  PVOID Context,
29  HWND hwnd);
30 typedef BOOL (CALLBACK *PDOCKBAR_INSERTBAND)(struct _TOOLBAR_DOCKS *TbDocks,
31  const DOCKBAR *Dockbar,
32  PVOID Context,
33  UINT *Index,
34  LPREBARBANDINFO rbi);
35 typedef VOID (CALLBACK *PDOCKBAR_DOCKBAND)(struct _TOOLBAR_DOCKS *TbDocks,
36  const DOCKBAR *Dockbar,
37  PVOID Context,
38  DOCK_POSITION DockFrom,
39  DOCK_POSITION DockTo,
40  LPREBARBANDINFO rbi);
42  const DOCKBAR *Dockbar,
43  PVOID Context,
44  HWND hwndChild,
45  LPNMREBARCHEVRON lpnm);
46 
48 {
49  PDOCKBAR_CREATECLIENT CreateClient;
55 
56 typedef struct _DOCKBAR_ITEM
57 {
67 
69  LONG cx,
70  LONG cy);
71 
72 #define DOCKS_COUNT 4
73 typedef struct _TOOLBAR_DOCKS
74 {
86 
89  PVOID Context,
90  PDOCKBAR_PARENTRESIZE ParentResizeProc);
92  PRECT rcClient);
93 HDWP TbdDeferDocks(HDWP hWinPosInfo,
94  PTOOLBAR_DOCKS TbDocks);
96  const DOCKBAR *Dockbar,
97  PVOID Context,
98  const DOCKBAR_ITEM_CALLBACKS *DockbarCallbacks);
100  HWND hWndClient,
101  UINT *Id);
103  LPNMHDR pnmh,
104  LRESULT *Result);
106  HWND hWnd,
107  BOOL Enable);
109  HWND hWnd,
110  WPARAM *wParam,
111  LPARAM *lParam);
113  BOOL Show);
BOOL TbdHandleNotifications(PTOOLBAR_DOCKS TbDocks, LPNMHDR pnmh, LRESULT *Result)
Definition: tooldock.c:291
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
struct _TOOLBAR_DOCKS TOOLBAR_DOCKS
BOOL(CALLBACK * PDOCKBAR_INSERTBAND)(struct _TOOLBAR_DOCKS *TbDocks, const DOCKBAR *Dockbar, PVOID Context, UINT *Index, LPREBARBANDINFO rbi)
Definition: tooldock.h:30
LPCTSTR lpName
Definition: tooldock.h:14
VOID TbdInitializeDocks(PTOOLBAR_DOCKS TbDocks, HWND hWndParent, PVOID Context, PDOCKBAR_PARENTRESIZE ParentResizeProc)
Definition: tooldock.c:1064
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
DOCK_POSITION PrevDock
Definition: tooldock.h:63
const DOCKBAR_ITEM_CALLBACKS * Callbacks
Definition: tooldock.h:65
struct _DOCKBAR_ITEM DOCKBAR_ITEM
PDOCKBAR_DOCKBAND DockBand
Definition: tooldock.h:52
PDOCKBAR_CREATECLIENT CreateClient
Definition: tooldock.h:49
struct _DOCKBAR * PDOCKBAR
const DOCKBAR PVOID Context
Definition: tooldock.h:22
VOID TbdShowFloatingToolbars(PTOOLBAR_DOCKS TbDocks, BOOL Show)
Definition: tooldock.c:1042
PDOCKBAR_CHEVRONPUSHED ChevronPushed
Definition: tooldock.h:53
UINT DraggingBandId
Definition: tooldock.h:83
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:140
#define CALLBACK
Definition: compat.h:27
HWND hWnd
Definition: settings.c:17
struct _DOCKBAR DOCKBAR
BOOL TbdInitImpl(VOID)
Definition: tooldock.c:1116
INT TbdAdjustUpdateClientRect(PTOOLBAR_DOCKS TbDocks, PRECT rcClient)
Definition: tooldock.c:44
int32_t INT
Definition: typedefs.h:56
VOID(CALLBACK * PDOCKBAR_PARENTRESIZE)(PVOID Context, LONG cx, LONG cy)
Definition: tooldock.h:68
WPARAM wParam
Definition: combotst.c:138
DWORD Id
UINT_PTR WPARAM
Definition: windef.h:207
struct _DOCKBAR_ITEM_CALLBACKS * PDOCKBAR_ITEM_CALLBACKS
HDWP TbdDeferDocks(HDWP hWinPosInfo, PTOOLBAR_DOCKS TbDocks)
Definition: tooldock.c:71
struct _DOCKBAR_ITEM * Next
Definition: tooldock.h:58
RECT rcRebar[DOCKS_COUNT]
Definition: tooldock.h:78
long LONG
Definition: pedump.c:60
LONG_PTR LPARAM
Definition: windef.h:208
BOOL TbdDockBarIdFromClientWindow(PTOOLBAR_DOCKS TbDocks, HWND hWndClient, UINT *Id)
Definition: tooldock.c:267
DOCK_POSITION Position
Definition: tooldock.h:16
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:570
VOID TbdHandleActivation(PTOOLBAR_DOCKS TbDocks, HWND hWnd, WPARAM *wParam, LPARAM *lParam)
Definition: tooldock.c:992
HWND hWndClient
Definition: tooldock.h:62
VOID TbdHandleEnabling(PTOOLBAR_DOCKS TbDocks, HWND hWnd, BOOL Enable)
Definition: tooldock.c:972
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
#define DOCKS_COUNT
Definition: tooldock.h:72
DOCK_POSITION
Definition: tooldock.h:2
VOID TbdUninitImpl(VOID)
Definition: tooldock.c:1134
const DOCKBAR * Dockbar
Definition: tooldock.h:22
HWND hWndTool
Definition: tooldock.h:61
UINT BarId
Definition: tooldock.h:13
PDOCKBAR_ITEM Items
Definition: tooldock.h:80
char TCHAR
Definition: xmlstorage.h:189
PDOCKBAR_DESTROYCLIENT DestroyClient
Definition: tooldock.h:50
VOID(CALLBACK * PDOCKBAR_CHEVRONPUSHED)(struct _TOOLBAR_DOCKS *TbDocks, const DOCKBAR *Dockbar, PVOID Context, HWND hwndChild, LPNMREBARCHEVRON lpnm)
Definition: tooldock.h:41
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned int UINT
Definition: ndis.h:50
static const UCHAR Index[8]
Definition: usbohci.c:18
BOOL(CALLBACK * PDOCKBAR_DESTROYCLIENT)(struct _TOOLBAR_DOCKS *TbDocks, const DOCKBAR *Dockbar, PVOID Context, HWND hwnd)
Definition: tooldock.h:26
struct _TOOLBAR_DOCKS * PTOOLBAR_DOCKS
#define LPREBARBANDINFO
Definition: commctrl.h:1540
typedef BOOL(CALLBACK *PDOCKBAR_CREATECLIENT)(struct _TOOLBAR_DOCKS *TbDocks
UINT DisplayTextId
Definition: tooldock.h:15
PVOID Context
Definition: tooldock.h:76
VOID(CALLBACK * PDOCKBAR_DOCKBAND)(struct _TOOLBAR_DOCKS *TbDocks, const DOCKBAR *Dockbar, PVOID Context, DOCK_POSITION DockFrom, DOCK_POSITION DockTo, LPREBARBANDINFO rbi)
Definition: tooldock.h:35
#define VOID
Definition: acefi.h:82
const DOCKBAR PVOID HWND hParent
Definition: tooldock.h:22
PDOCKBAR_INSERTBAND InsertBand
Definition: tooldock.h:51
TCHAR szTempText[255]
Definition: tooldock.h:84
struct _DOCKBAR_ITEM * PDOCKBAR_ITEM
HWND hRebar[DOCKS_COUNT]
Definition: tooldock.h:77
HWND hParent
Definition: tooldock.h:75
_Out_opt_ int * cx
Definition: commctrl.h:570
DOCKBAR DockBar
Definition: tooldock.h:59
struct _DOCKBAR_ITEM_CALLBACKS DOCKBAR_ITEM_CALLBACKS
UINT PrevBandIndex
Definition: tooldock.h:64
LONG_PTR LRESULT
Definition: windef.h:209
PVOID Context
Definition: tooldock.h:60
RECT rcClient
Definition: tooldock.h:79
LPARAM lParam
Definition: combotst.c:139
PDOCKBAR_PARENTRESIZE ParentResize
Definition: tooldock.h:81
PDOCKBAR_ITEM Dragging
Definition: tooldock.h:82
BOOL TbdAddToolbar(PTOOLBAR_DOCKS TbDocks, const DOCKBAR *Dockbar, PVOID Context, const DOCKBAR_ITEM_CALLBACKS *DockbarCallbacks)
Definition: tooldock.c:585