2003-11-19 04:38:14 +00:00
|
|
|
/*
|
2003-05-28 04:46:51 +00:00
|
|
|
Copyright (c) 2003 Sunil Kamath
|
|
|
|
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
|
|
warranty. In no event will the authors be held liable for any damages
|
|
|
|
arising from the use of this software.
|
|
|
|
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
|
|
including commercial applications, and to alter it and redistribute it
|
|
|
|
freely, subject to the following restrictions:
|
|
|
|
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
|
|
claim that you wrote the original software. If you use this software
|
|
|
|
in a product, an acknowledgment in the product documentation would be
|
|
|
|
appreciated but is not required.
|
|
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
|
|
misrepresented as being the original software.
|
|
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
|
|
|
|
|
|
*/
|
|
|
|
#ifndef TOOLBAR_H
|
|
|
|
#define TOOLBAR_H
|
2003-11-19 04:38:14 +00:00
|
|
|
#include <commctrl.h>
|
2003-05-28 04:46:51 +00:00
|
|
|
|
|
|
|
#define TOOLBAR_ID 10001
|
|
|
|
|
2003-11-24 16:51:39 +00:00
|
|
|
#define NUMIMAGES 22
|
2003-05-28 04:46:51 +00:00
|
|
|
#define IMAGEWIDTH 16
|
|
|
|
#define IMAGEHEIGHT 16
|
|
|
|
#define BUTTONWIDTH 0
|
|
|
|
#define BUTTONHEIGHT 0
|
|
|
|
|
2003-11-11 13:43:59 +00:00
|
|
|
// Altered by Darren Owen (DrO) on 1/10/2003
|
|
|
|
#define BUTTONCOUNT 21 // was 20
|
2003-05-28 04:46:51 +00:00
|
|
|
|
|
|
|
#define TBB_LOADSCRIPT 0
|
|
|
|
#define TBB_SAVE 1
|
|
|
|
#define TBB_EXIT 2
|
|
|
|
#define TBB_SEP1 3
|
|
|
|
#define TBB_COPY 4
|
|
|
|
#define TBB_FIND 5
|
|
|
|
#define TBB_SEP2 6
|
2003-11-25 21:06:37 +00:00
|
|
|
#define TBB_SETTINGS 7
|
|
|
|
#define TBB_RECOMPILE 8
|
|
|
|
#define TBB_TEST 9
|
2003-11-11 13:43:59 +00:00
|
|
|
// Added by Darren Owen (DrO) on 1/10/2003 and altered following ids
|
2003-11-25 21:06:37 +00:00
|
|
|
#define TBB_RECOMPILE_TEST 10
|
|
|
|
#define TBB_COMPRESSOR 11
|
2003-11-11 13:43:59 +00:00
|
|
|
#define TBB_EDITSCRIPT 12
|
|
|
|
#define TBB_BROWSESCR 13
|
|
|
|
#define TBB_CLEARLOG 14
|
|
|
|
#define TBB_SEP3 15
|
|
|
|
#define TBB_NSISHOME 16
|
|
|
|
#define TBB_FORUM 17
|
|
|
|
#define TBB_NSISUPDATE 18
|
|
|
|
#define TBB_SEP4 19
|
|
|
|
#define TBB_DOCS 20
|
2003-05-28 04:46:51 +00:00
|
|
|
|
|
|
|
#define IDB_LOADSCRIPT 0
|
|
|
|
#define IDB_SAVE 1
|
|
|
|
#define IDB_EXIT 2
|
|
|
|
#define IDB_COPY 3
|
|
|
|
#define IDB_FIND 4
|
|
|
|
#define IDB_RECOMPILE 5
|
2003-11-25 21:06:37 +00:00
|
|
|
#define IDB_SETTINGS 6
|
2003-05-28 04:46:51 +00:00
|
|
|
#define IDB_COMPRESSOR 7
|
2003-11-25 21:06:37 +00:00
|
|
|
#define IDB_COMPRESSOR_SCRIPT 7
|
2003-05-28 04:46:51 +00:00
|
|
|
#define IDB_TEST 8
|
|
|
|
#define IDB_EDITSCRIPT 9
|
|
|
|
#define IDB_BROWSESCR 10
|
|
|
|
#define IDB_CLEARLOG 11
|
|
|
|
#define IDB_NSISHOME 12
|
|
|
|
#define IDB_FORUM 14
|
|
|
|
#define IDB_NSISUPDATE 15
|
|
|
|
#define IDB_DOCS 16
|
2003-11-19 04:38:14 +00:00
|
|
|
#define IDB_COMPRESSOR_BZIP2 17
|
|
|
|
#define IDB_COMPRESSOR_ZLIB 18
|
2003-11-11 13:43:59 +00:00
|
|
|
// Added by Darren Owen (DrO) on 1/10/2003
|
|
|
|
#define IDB_RECOMPILE_TEST 19
|
2003-11-19 04:38:14 +00:00
|
|
|
#define IDB_COMPRESSOR_BEST 20
|
2003-11-24 16:51:39 +00:00
|
|
|
#define IDB_COMPRESSOR_LZMA 21
|
2003-05-28 04:46:51 +00:00
|
|
|
|
|
|
|
typedef struct ToolBarStruct {
|
|
|
|
HWND hwnd;
|
|
|
|
HMENU dropdownmenu;
|
|
|
|
POINT dropdownpoint;
|
|
|
|
} NTOOLBAR;
|
|
|
|
|
|
|
|
void CreateToolBar();
|
|
|
|
void EnableToolBarButton(int, BOOL);
|
|
|
|
void AddToolBarTooltips();
|
|
|
|
void ShowToolbarDropdownMenu();
|
|
|
|
void UpdateToolBarCompressorButton();
|
|
|
|
#endif
|