home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 March / CMCD0304.ISO / Software / Freeware / Programare / nullsoft / nsis20.exe / Contrib / Makensisw / toolbar.h < prev    next >
C/C++ Source or Header  |  2004-01-02  |  3KB  |  80 lines

  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. */
  22. #ifndef TOOLBAR_H
  23. #define TOOLBAR_H
  24. #include <commctrl.h>
  25.  
  26. #define TOOLBAR_ID                   10001
  27.  
  28. #define BUTTONCOUNT     15
  29.  
  30. #define TBB_LOADSCRIPT                   0
  31. #define TBB_SAVE                         1
  32. #define TBB_SEP1                         2
  33. #define TBB_COPY                         3
  34. #define TBB_FIND                         4
  35. #define TBB_CLEARLOG                     5
  36. #define TBB_SEP2                         6
  37. #define TBB_RECOMPILE                    7
  38. #define TBB_TEST                         8
  39. #define TBB_COMPRESSOR                   9
  40. #define TBB_EDITSCRIPT                   10
  41. #define TBB_BROWSESCR                    11
  42. #define TBB_SEP3                         12
  43. #define TBB_NSISHOME                     13
  44. #define TBB_DOCS                         14
  45.  
  46. #define IMAGECOUNT      16
  47.  
  48. #define IDB_LOADSCRIPT                   0
  49. #define IDB_SAVE                         1
  50. #define IDB_COPY                         2
  51. #define IDB_FIND                         3
  52. #define IDB_RECOMPILE                    4
  53. #define IDB_TEST                         5
  54. #define IDB_EDITSCRIPT                   6
  55. #define IDB_BROWSESCR                    7
  56. #define IDB_CLEARLOG                     8
  57. #define IDB_NSISHOME                     9
  58. #define IDB_DOCS                         10
  59. #define IDB_COMPRESSOR                   11
  60. #define IDB_COMPRESSOR_SCRIPT            11
  61. #define IDB_COMPRESSOR_BZIP2             12
  62. #define IDB_COMPRESSOR_ZLIB              13
  63. #define IDB_COMPRESSOR_BEST              14
  64. #define IDB_COMPRESSOR_LZMA              15
  65.  
  66. typedef struct ToolBarStruct {
  67.   HWND hwnd;
  68.   HMENU dropdownmenu;
  69.   POINT dropdownpoint;
  70.   HIMAGELIST imagelist;
  71.   HIMAGELIST imagelistd;
  72.   HIMAGELIST imagelisth;
  73. } NTOOLBAR;
  74.  
  75. void CreateToolBar();
  76. void EnableToolBarButton(int, BOOL);
  77. void AddToolBarTooltips();
  78. void ShowToolbarDropdownMenu();
  79. void UpdateToolBarCompressorButton();
  80. #endif