source: trunk/dll/command.h@ 1486

Last change on this file since 1486 was 1486, checked in by Gregg Young, 16 years ago

Initial changes to commands handling. Allows you to reorder commands menu without breaking toolbars and changing hotkeys. Fixes the environment so it is used and so it is deleted if the command is deleted. Allows for user defined bitmaps in toolbars which are named based on the text or the the ID of the command.The new commands.dat will not be usable with earlier versions of FM/2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 855 bytes
Line 
1
2/***********************************************************************
3
4 $Id: command.h 1486 2009-12-17 00:36:04Z gyoung $
5
6 Custom commands
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2008 Steven H. Levine
10
11 01 Mar 08 GKY Move from fm3dll.h to here
12 22 Jun 08 GKY Moved free_commands here for fortify checking
13
14***********************************************************************/
15
16#if !defined(COMMAND_H)
17#define COMMAND_H
18
19#if !defined(OS2_INCLUDED)
20#include <os2.h>
21#endif
22
23VOID RunCommand(HWND hwnd, INT cx);
24VOID EditCommands(HWND hwnd);
25CHAR *command_title(INT cx);
26VOID load_commands(VOID);
27VOID free_commands(VOID);
28
29typedef struct LINKCMDS
30{
31 PSZ pszCmdLine;
32 CHAR *title;
33 ULONG flags;
34 ULONG ID;
35 ULONG HotKeyID;
36 struct LINKCMDS *next;
37 struct LINKCMDS *prev;
38}
39LINKCMDS;
40
41// Data declarations
42extern BOOL cmdloaded;
43extern LINKCMDS *cmdhead;
44
45#endif // COMMAND_H
Note: See TracBrowser for help on using the repository browser.