| 1 |
/* |
| 2 |
Copyright (c) 2003 Sunil Kamath |
| 3 |
Modified by Joost Verburg |
| 4 |
|
| 5 |
This software is provided 'as-is', without any express or implied |
| 6 |
warranty. In no event will the authors be held liable for any damages |
| 7 |
arising from the use of this software. |
| 8 |
|
| 9 |
Permission is granted to anyone to use this software for any purpose, |
| 10 |
including commercial applications, and to alter it and redistribute it |
| 11 |
freely, subject to the following restrictions: |
| 12 |
|
| 13 |
1. The origin of this software must not be misrepresented; you must not |
| 14 |
claim that you wrote the original software. If you use this software |
| 15 |
in a product, an acknowledgment in the product documentation would be |
| 16 |
appreciated but is not required. |
| 17 |
2. Altered source versions must be plainly marked as such, and must not be |
| 18 |
misrepresented as being the original software. |
| 19 |
3. This notice may not be removed or altered from any source distribution. |
| 20 |
|
| 21 |
Reviewed for Unicode support by Jim Park -- 08/20/2007 |
| 22 |
*/ |
| 23 |
#ifndef TOOLBAR_H |
| 24 |
#define TOOLBAR_H |
| 25 |
#include <commctrl.h> |
| 26 |
|
| 27 |
#define TBB_LOADSCRIPT 0 |
| 28 |
#define TBB_SAVE 1 |
| 29 |
#define TBB_SEP1 2 |
| 30 |
#define TBB_COPY 3 |
| 31 |
#define TBB_FIND 4 |
| 32 |
#define TBB_CLEARLOG 5 |
| 33 |
#define TBB_SEP2 6 |
| 34 |
#define TBB_RECOMPILE 7 |
| 35 |
#define TBB_TEST 8 |
| 36 |
#define TBB_COMPRESSOR 9 |
| 37 |
#define TBB_EDITSCRIPT 10 |
| 38 |
#define TBB_BROWSESCR 11 |
| 39 |
#define BUTTONCOUNT 12 |
| 40 |
|
| 41 |
#define IDB_LOADSCRIPT 0 |
| 42 |
#define IDB_SAVE 1 |
| 43 |
#define IDB_COPY 2 |
| 44 |
#define IDB_FIND 3 |
| 45 |
#define IDB_RECOMPILE 4 |
| 46 |
#define IDB_TEST 5 |
| 47 |
#define IDB_EDITSCRIPT 6 |
| 48 |
#define IDB_BROWSESCR 7 |
| 49 |
#define IDB_CLEARLOG 8 |
| 50 |
#define IDB_COMPRESSOR_SCRIPT 9 |
| 51 |
#define IDB_COMPRESSOR_BZIP2 10 |
| 52 |
#define IDB_COMPRESSOR_ZLIB 11 |
| 53 |
#define IDB_COMPRESSOR_BEST 12 |
| 54 |
#define IDB_COMPRESSOR_LZMA 13 |
| 55 |
#define IMAGECOUNT 14 |
| 56 |
#define IDB_COMPRESSOR IDB_COMPRESSOR_SCRIPT |
| 57 |
|
| 58 |
typedef struct ToolBarStruct { |
| 59 |
HWND hwnd; |
| 60 |
HIMAGELIST imagelist; |
| 61 |
HIMAGELIST imagelistd; |
| 62 |
HIMAGELIST imagelisth; |
| 63 |
} NTOOLBAR; |
| 64 |
|
| 65 |
void CreateToolBar(); |
| 66 |
void EnableToolBarButton(int, BOOL); |
| 67 |
void AddToolBarTooltips(); |
| 68 |
void ShowCompressorToolbarDropdownMenu(const NMTOOLBAR&nmtb); |
| 69 |
void UpdateToolBarCompressorButton(); |
| 70 |
#endif |