CMDTYPE

typedef enum
{
   /* predefined commands */
   CMD_LOAD = 0, /* load a file */
   CMD_SAVE = 1, /* save a file */
   CMD_CREATE_WIN = 2, /* create a window */
   CMD_SIZE_WIN = 3, /* size a new window */
   CMD_CLOSE_WIN = 4, /* close a window */
   CMD_SHOW_WIN = 5, /* show/hide the window */
   CMD_SET_RECT = 6, /* set bitmap display rectangles */
   CMD_GET_MAGGLASS_DATA = 10, /* get MagGlass needed data*/
   CMD_USER_REG = 10000, /* start of registered user command values */
   CMD_USER_CUSTOM = 20000, /* start of custom user command values */
} CMDTYPE, *pCMDTYPE;

The CMDTYPE data type contains the predefined commands used by the Internet command functions.

Comments

Users are encouraged to register their commands with LEAD. The registered commands will go in the 10000-19999 interval. Registering commands will help avoid conflicts when two different applications talk to each other.

The custom user commands will be known only by the application that sent them.