home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 November
/
VPR9611A.ISO
/
ols
/
win31
/
hmize120
/
hmize120.lzh
/
SOURCE.LZH
/
GLOBAL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-09-14
|
3KB
|
134 lines
// global.h for 秀丸化計画
extern HINSTANCE hInstance;
extern BYTE abKeyState[256];
extern HWND hwndTarget;
extern HWND hwndClient;
int GetCommand( WPARAM wParam );
#define KEYMENU_NUM 25
struct KEYMENU {
BYTE avkey[25];
BYTE acmd[25];
};
#define RECORD_BUFFER 500
#define MARK_MAX 20
#define MACRO_MAX 15
struct MACRO {
char szFileName[13];
char szTitle[31];
};
struct SHAREMEMSTRUCT {
struct SEARCH {
BYTE fWordSearch;
BYTE fCaseSense;
BYTE fReplacing;
BYTE fAskReplace;
BYTE fRegularExpression;
char aszSearch[5][80];
char szSearch[80];
} search;
struct OPEN {
struct OPENSHARE {
char szFileName[80];
BYTE xpos;
WORD iheadWord;
} a[20];
} open;
struct KEY {
BYTE func[ 12 + 2 ];
BYTE mouse[3]; // left-double-click, right-down, left-triple
BYTE shift[ 12 + 2 + 1 + 1 + 1 + 1 + 4 ];
// func * 12, home, end, back, return, ins, del, cursor * 4
BYTE ctrl[ 12 + 2 + 1 + 1 + 1 + 1 + 4 + 'Z' - '@' + 1 + 5 + 2 ];
// func * 12, home, end, back, return, ins, del, cursor key * 4, @ - z < >
KEYMENU amenu[8];
BYTE fTitledMenu;
BYTE ctrlshift[ 12 + 2 + 1 + 1 + 1 + 1 + 4 + 'Z' - '@' + 1 + 5 + 2 ];
BYTE adelay[8];
char aszMenuTitle[8][17];
} key;
BOOL fOverwrite;
char szLastCurDir[100];
struct TAGJUMP {
HWND hwndBack;
WORD iheadBackWord;
} tagjump;
struct RECORD {
BOOL fRecording;
WORD cb;
BYTE ab[ RECORD_BUFFER ];
} record;
char szRecordFile[13];
char szGrepFile[80];
BYTE bCtrlCodeLast;
struct MARK {
HWND ahwnd[ MARK_MAX ];
WORD aiHeadWord[ MARK_MAX ];
WORD axpos[ MARK_MAX ];
WORD aLineNoWord[ MARK_MAX ];
char aszMark[ MARK_MAX ][20];
char aszFileName[ MARK_MAX ][80];
int cMark;
BOOL fMarking;
} mark;
MACRO amacro[MACRO_MAX];
BYTE cBootCount;
DWORD timeInstalled;
char szSpec[80];
BYTE fGrepSubdir;
BYTE fFuzzySearch;
WORD xFloat, yFloat;
char szReplace[80];
KEYMENU menuRightButton;
int cWord;
char aszWord[32][16];
char chWordMinimum;
char aszSearch2[5][80];
BYTE fMinimizeOnGrep;
char aszPathHistory[5][80];
MACRO amacro2[MACRO_MAX];
HWND hwndTSR;
BYTE fAlwaysTop;
BYTE abReserved[100];
};
extern struct SHAREMEMSTRUCT FAR* pshare;
#ifdef _DEBUG
#define DebugOut(a) OutputDebugString(a)
#else
#define DebugOut(a)
#endif
void SendVKey( int vkey );
void SendCtrlVKey( int vkey );
void SendShiftVKey( int vkey );
void SendSelectingVKey( int vkey );
void SendSelectingCtrlVKey( int vkey );
void SendCtrlShiftVKey( int vkey );
void CommandKeyMenu( WORD cmd );
extern BOOL fMenuFilterInstalled;
extern enum WNDCLASSENUM {
CLASS_EDIT,
CLASS_LISTBOX,
CLASS_COMBOBOX
} wndclass;
extern UINT afConfig;
#define FLAG_HOOK_CTRL_XCV 1
#define FLAG_HOOK_RBUTTON 2
#define FLAG_HOOK_LISTBOX_SEARCH 4
#define FLAG_HOOK_GLOBAL 8