-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainFormClass.h
More file actions
44 lines (41 loc) · 1.43 KB
/
MainFormClass.h
File metadata and controls
44 lines (41 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//$$---- Form HDR ----
//---------------------------------------------------------------------------
#ifndef MainFormClassH
#define MainFormClassH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Menus.hpp>
#include "CPKeyHook.hpp"
//---------------------------------------------------------------------------
#define WM_TRAYNOTIFY (WM_USER + 1001)
class TMainForm : public TForm
{
__published: // IDE-managed Components
TPopupMenu *PopupMenu1;
TMenuItem *ExitMenuItem;
TMenuItem *LaunchMenuItem;
void __fastcall LaunchMenuItemClick(TObject *Sender);
void __fastcall ExitMenuItemClick(TObject *Sender);
private: // User declarations
TCPKeyHook *kh;
Graphics::TIcon *TrayIcon;
void __fastcall WMTrayNotify(TMessage &Msg);
void __fastcall RemoveIcon();
void __fastcall AddIcon();
void __fastcall LaunchTilchi();
void __fastcall OnKeyPressed(System::TObject* Sender,
const TKeyStates &AKeyStates, const TKeyNames &AKeyNames);
public: // User declarations
__fastcall TMainForm(TComponent* Owner);
__fastcall ~TMainForm();
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_TRAYNOTIFY,TMessage,WMTrayNotify)
END_MESSAGE_MAP(TForm)
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif