|
/**********************************************************************
- File Name: CommandIDs.h
- Date: 12/10/2003 4:28:06 PM
- Author: Michael Sheinin
- Description :
The file contains commands IDs for standard command group.
- Notes:
All numbers are obtained using the tracing of the original
"bined" package activity.
The command flags are used internaly to specify current command
availability.
**********************************************************************/
#pragma once
//
//
#define COMMAND_ID_CUT 0x10 /*cut*/
#define COMMAND_ID_PASTE 0x1A /*paste*/
#define COMMAND_ID_COPY 0xF /*copy*/
#define COMMAND_ID_UNDO 0x2C /*undo*/
#define COMMAND_ID_REDO 0x1E /*redo*/
#define COMMAND_ID_DELETE 0x11 /*delete*/
#define COMMAND_ID_SEL_ALL 0x1F /*select all*/
#define COMMAND_ID_NEWPANE 0x10D/*enables creation of new group tab pane*/
#define COMMAND_ID_NEWPANE1 0x10C/*enables creation of new group tab pane*/
#define COMMAND_ID_ONEXIT 0xE5 /*revoke drop target*/
#define COMMAND_ID_WNDSHO 0x2AC/*window activated*/
#define COMMAND_ID_WNDSHO1 0x151/*same*/
#define COMMAND_ID_SAVE 0x14B/*save file*/
#define COMMAND_ID_SAVEALL 0xE0 /*save all */
//
#define CMD_FLAG_CUT 0x1
#define CMD_FLAG_PASTE 0x2
#define CMD_FLAG_COPY 0x4
#define CMD_FLAG_UNDO 0x8
#define CMD_FLAG_REDO 0x10
#define CMD_FLAG_DELETE 0x20
#define CMD_FLAG_SELALL 0x40
/*#define CMD_FLAG_ 0x
#define CMD_FLAG_ 0x
#define CMD_FLAG_ 0x
#define CMD_FLAG_ 0x
#define CMD_FLAG_ 0x
#define CMD_FLAG_ 0x*/
#define IsCmdEnabled(CMD_STATE,CMD_FLAG) ((CMD_STATE&CMD_FLAG) != 0)
#define CmdAllEnabled (DWORD(-1))
#define CmdEnable(CMD_STATE,CMD_FLAG) (CMD_STATE|=(CMD_FLAG))
#define CmdDisable(CMD_STATE,CMD_FLAG) (CMD_STATE&=(~(CMD_FLAG)))
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
For the last 7 years I have developed software in real-time/embedded and MS-Windows environments for military and civil markets. I hold B.Sc. degree in computer engineering. Living in Ontario, Canada, I like hiking and traveling in general. Currently, I'm looking for employment opportunity inside the GTA.