Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
CMDTYPE
typedef enum
{
CMD_LOAD = 0,
CMD_SAVE = 1,
CMD_CREATE_WIN = 2,
CMD_SIZE_WIN = 3,
CMD_CLOSE_WIN = 4,
CMD_SHOW_WIN = 5,
CMD_SET_RECT = 6,
CMD_SEND_ANN = 7,
CMD_ATTACH_BITMAP = 8,
CMD_FREE_BITMAP = 9,
CMD_GET_MAGGLASS_DATA = 10,
CMD_USER_REG = 10000,
CMD_USER_CUSTOM = 20000,
} CMDTYPE, *pCMDTYPE;
The CMDTYPE data type contains the predefined commands used by the Peer-to-Peer command functions.
Value |
Meaning |
CMD_LOAD |
Load a file. |
CMD_SAVE |
Save a file. |
CMD_CREATE_WIN |
Create a window. |
CMD_SIZE_WIN |
Size a new window. |
CMD_CLOSE_WIN |
Close a window. |
CMD_SHOW_WIN |
Show/hide a window. |
CMD_SET_RECT |
Set bitmap display rectangles. |
CMD_SEND_ANN |
Send annotation to remote. |
CMD_ATTACH_BITMAP |
Attach a bitmap to a window. |
CMD_FREE_BITMAP |
Free bitmap. |
CMD_GET_MAGGLASS_DATA |
Get required magnifying glass data. |
CMD_USER_REG |
Start of registered user command values. |
CMD_USER_CUSTOM |
Start of custom user command values. |
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 intercommunicate.
The custom user commands will be known only by the application that sent them.