/*********************************************************************** $Id: tools.h 551 2007-02-28 01:33:51Z gyoung $ tools interface Copyright (c) 1993-98 M. Kimes Copyright (c) 2005 Steven H. Levine 26 May 05 SHL Localize toolhead ***********************************************************************/ typedef struct TOOL { CHAR *help; CHAR *text; INT flags; struct TOOL *next; USHORT id; } TOOL; #define T_DROPABLE 0x00000001 #define T_EMPHASIZED 0x00000002 #define T_INVISIBLE 0x00000004 #define T_SEPARATOR 0x00000008 #define T_TEXT 0x00000010 #define T_MYICON 0x00000020 extern TOOL *toolhead; VOID load_quicktools(VOID); VOID save_quicktools(VOID); TOOL *load_tools(CHAR * filename); VOID save_tools(CHAR * filename); TOOL *add_tool(TOOL * tool); TOOL *insert_tool(TOOL * tool, TOOL * after); TOOL *del_tool(TOOL * tool); TOOL *find_tool(USHORT id); TOOL *free_tools(VOID); TOOL *swap_tools(TOOL * tool1, TOOL * tool2); TOOL *next_tool(TOOL * tool, BOOL skipinvisible); TOOL *prev_tool(TOOL * tool, BOOL skipinvisible); MRESULT EXPENTRY ReOrderToolsProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); MRESULT EXPENTRY AddToolProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); MRESULT EXPENTRY PickToolProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); MRESULT EXPENTRY ToolIODlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);