mwkeycmdeditor.hpp
来自「本人买的<<VC++项目开发实例>>源代码配套光盘.」· HPP 代码 · 共 101 行
HPP
101 行
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'mwKeyCmdEditor.pas' rev: 5.00
#ifndef mwKeyCmdEditorHPP
#define mwKeyCmdEditorHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp> // Pascal unit
#include <mwKeyCmds.hpp> // Pascal unit
#include <ComCtrls.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <Dialogs.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Mwkeycmdeditor
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TmwKeystrokeEditorForm;
class PASCALIMPLEMENTATION TmwKeystrokeEditorForm : public Forms::TForm
{
typedef Forms::TForm inherited;
__published:
Stdctrls::TLabel* Label1;
Stdctrls::TLabel* Label2;
Stdctrls::TComboBox* cmbCommand;
Comctrls::THotKey* hkKeystroke;
Stdctrls::TButton* btnOK;
Stdctrls::TButton* btnCancel;
Stdctrls::TButton* bntClearKey;
Stdctrls::TLabel* Label4;
Comctrls::THotKey* hkKeystroke2;
void __fastcall FormCreate(System::TObject* Sender);
void __fastcall FormKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
void __fastcall bntClearKeyClick(System::TObject* Sender);
private:
void __fastcall SetCommand(const Mwkeycmds::TmwEditorCommand Value);
void __fastcall SetKeystroke(const Classes::TShortCut Value);
void __fastcall AddEditorCommand(const AnsiString S);
Mwkeycmds::TmwEditorCommand __fastcall GetCommand(void);
Classes::TShortCut __fastcall GetKeystroke(void);
Classes::TShortCut __fastcall GetKeystroke2(void);
void __fastcall SetKeystroke2(const Classes::TShortCut Value);
public:
__property Mwkeycmds::TmwEditorCommand Command = {read=GetCommand, write=SetCommand, nodefault};
__property Classes::TShortCut Keystroke = {read=GetKeystroke, write=SetKeystroke, nodefault};
__property Classes::TShortCut Keystroke2 = {read=GetKeystroke2, write=SetKeystroke2, nodefault};
public:
#pragma option push -w-inl
/* TCustomForm.Create */ inline __fastcall virtual TmwKeystrokeEditorForm(Classes::TComponent* AOwner
) : Forms::TForm(AOwner) { }
#pragma option pop
#pragma option push -w-inl
/* TCustomForm.CreateNew */ inline __fastcall virtual TmwKeystrokeEditorForm(Classes::TComponent* AOwner
, int Dummy) : Forms::TForm(AOwner, Dummy) { }
#pragma option pop
#pragma option push -w-inl
/* TCustomForm.Destroy */ inline __fastcall virtual ~TmwKeystrokeEditorForm(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TmwKeystrokeEditorForm(HWND ParentWindow) : Forms::TForm(
ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE TmwKeystrokeEditorForm* mwKeystrokeEditorForm;
} /* namespace Mwkeycmdeditor */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Mwkeycmdeditor;
#endif
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // mwKeyCmdEditor
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?