home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 March / CMCD0304.ISO / Software / Freeware / Programare / nullsoft / nsis20.exe / Contrib / Makensisw / utils.h < prev    next >
C/C++ Source or Header  |  2003-12-30  |  2KB  |  63 lines

  1. /* 
  2.   Copyright (c) 2002 Robert Rainwater
  3.   Copyright (c) 2002 Robert Rainwater
  4.   Contributors: Justin Frankel, Fritz Elfert, and Sunil Kamath
  5.  
  6.   This software is provided 'as-is', without any express or implied
  7.   warranty.  In no event will the authors be held liable for any damages
  8.   arising from the use of this software.
  9.  
  10.   Permission is granted to anyone to use this software for any purpose,
  11.   including commercial applications, and to alter it and redistribute it
  12.   freely, subject to the following restrictions:
  13.  
  14.   1. The origin of this software must not be misrepresented; you must not
  15.      claim that you wrote the original software. If you use this software
  16.      in a product, an acknowledgment in the product documentation would be
  17.      appreciated but is not required.
  18.   2. Altered source versions must be plainly marked as such, and must not be
  19.      misrepresented as being the original software.
  20.   3. This notice may not be removed or altered from any source distribution.
  21.  
  22. */
  23. #ifndef UTILS_H
  24. #define UTILS_H
  25. #include "resource.h"
  26. #include "toolbar.h"
  27.  
  28. #define MRU_LIST_SIZE 5
  29. #define MRU_DISPLAY_LENGTH 40
  30.  
  31. int SetArgv(char *cmdLine, int *argc, char ***argv);
  32. void SetTitle(HWND hwnd,char *substr);
  33. void SetBranding(HWND hwnd);
  34. void CopyToClipboard(HWND hwnd);
  35. void ClearLog(HWND hwnd);
  36. void LogMessage(HWND hwnd,const char *str);
  37. void ErrorMessage(HWND hwnd,const char *str);
  38. #define DisableItems(hwnd) Items(hwnd, 0)
  39. #define EnableItems(hwnd) Items(hwnd, 1)
  40. void Items(HWND hwnd, int on);
  41. /*void DisableItems(HWND hwnd);
  42. void EnableItems(HWND hwnd);*/
  43. void RestoreWindowPos(HWND hwnd);
  44. void SaveWindowPos(HWND hwnd);
  45. void ResetObjects();
  46. void ResetSymbols();
  47. int InitBranding();
  48. void InitTooltips(HWND h);
  49. void DestroyTooltips();
  50. void AddTip(HWND hWnd,LPSTR lpszToolTip);
  51. void ShowDocs();
  52. void RestoreCompressor();
  53. void SaveCompressor();
  54. void SetCompressorStats();
  55.  
  56. BOOL PopMRUFile(char* fname);
  57. void PushMRUFile(char* fname);
  58. void BuildMRUMenus();
  59. void LoadMRUFile(int position);
  60. void ClearMRUList();
  61.  
  62. BOOL FileExists(char *fname);
  63. #endif