📄 accelkey.h
字号:
//// $Id: accelkey.h,v 1.3 2000/06/20 01:36:29 weiym Exp $//// acclekey.h: the head file of accelkey.c.//// Copyright (C) 1999, Kang Xiaoning.// Copyright (C) 1999, Wei Yongming.// ///*** This library is free software; you can redistribute it and/or** modify it under the terms of the GNU Library General Public** License as published by the Free Software Foundation; either** version 2 of the License, or (at your option) any later version.**** This library is distributed in the hope that it will be useful,** but WITHOUT ANY WARRANTY; without even the implied warranty of** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU** Library General Public License for more details.**** You should have received a copy of the GNU Library General Public** License along with this library; if not, write to the Free** Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,** MA 02111-1307, USA*///// Create date: 1999/8/28//// Modify records://// Who When Where For What Status//-----------------------------------------------------------------------------//#ifndef GUI_ACCEL_H #define GUI_ACCEL_H#ifdef __cplusplusextern "C" {#endif /* __cplusplus */typedef struct _ACCELITEM{ short key; // lower 8 bit is key c DWORD keymask; WPARAM wParam; //command id LPARAM lParam; // lParam to be sent to BOOL fromheap; struct _ACCELITEM *next; // next item }ACCELITEM;typedef ACCELITEM* PACCELITEM;typedef struct _ACCELTABLE{ short class; // class of data. HWND hwnd; // owner. PACCELITEM head; // head of menu item list struct _ACCELTABLE* next; // pointer to next free MENUBAR element in free MB list. BOOL fromheap;}ACCELTABLE;typedef ACCELTABLE* PACCELTABLE;#define SIZE_AI_HEAP 512typedef struct tagFREEAILIST{ pthread_mutex_t lock; PACCELITEM head; PACCELITEM tail; int nr; PACCELITEM heap; int free;}FREEAILIST;typedef FREEAILIST* PFREEAILIST;#define SIZE_AC_HEAP 64typedef struct tagFREEACLIST{ pthread_mutex_t lock; PACCELTABLE head; PACCELTABLE tail; int nr; PACCELTABLE heap; int free;}FREEACLIST;typedef FREEACLIST* PFREEACLIST;BOOL InitAccel (void);void TerminateAccel (void);HACCEL CopyAcceleratorTable(HACCEL hacc);int DeleteAccelerators(HACCEL hacc,int key,DWORD keymask);PACCELITEM *accFindMatchAccelKeys(HACCEL hacc, int key,DWORD keymask );#ifdef __cplusplus}#endif /* __cplusplus */#endif // GUI_ACCEL_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -