2 * Copyright (c) 2005 Massachusetts Institute of Technology
4 * Permission is hereby granted, free of charge, to any person
5 * obtaining a copy of this software and associated documentation
6 * files (the "Software"), to deal in the Software without
7 * restriction, including without limitation the rights to use, copy,
8 * modify, merge, publish, distribute, sublicense, and/or sell copies
9 * of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 #ifndef __KHIMAIRA_TOOLBAR_H
28 #define __KHIMAIRA_TOOLBAR_H
30 extern HWND khui_hwnd_standard_toolbar;
32 void khui_init_toolbar(void);
33 void khui_exit_toolbar(void);
34 LRESULT khm_toolbar_notify(LPNMHDR notice);
35 void khm_create_standard_toolbar(HWND rebar);
36 void khui_add_action_to_toolbar(HWND toolbar, khui_action * act, int opt, HIMAGELIST hiList);
37 void khm_update_standard_toolbar(void);
39 /* options for khui_add_action_to_toolbar */
40 #define KHUI_TOOLBAR_ADD_TEXT 0x00000001
41 #define KHUI_TOOLBAR_ADD_BITMAP 0x00000002
42 #define KHUI_TOOLBAR_ADD_LONGTEXT 0x00000005
43 #define KHUI_TOOLBAR_ADD_DROPDOWN 0x00000008
44 #define KHUI_TOOLBAR_ADD_SEP 0x00000010
45 #define KHUI_TOOLBAR_VARSIZE 0x00000020
47 #define KHUI_TOOLBAR_IMAGE_WIDTH 29
48 #define KHUI_TOOLBAR_IMAGE_HEIGHT 27
49 #define KHUI_TOOLBAR_BGCOLOR RGB(0xd7,0xd7,0xd7)
50 #define KHUI_TOOLBAR_MAX_BTNS 64