summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI/m_msg_buttonsbar.h
blob: 11413d853bfd104d5873a0e36562da5086b54dae (plain)
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
#ifndef M_MSG_BUTTONSBAR_H__
#define M_MSG_BUTTONSBAR_H__

////////////////////////////////////////////////////////////////
//Events
//

///////////////////////////////////////////////////
// ButtonClicked event
// wParam = (HANDLE)hContact;
// lParam = (CustomButtonClickData *)&CustomButtonClickData;
// catch to show a popup menu, etc.
#define ME_MSG_BUTTONPRESSED		"TabSRMM/ButtonsBar/ButtonPressed"


// event flags
#define BBCF_RIGHTBUTTON	(1<<0)
#define BBCF_SHIFTPRESSED	(1<<1)
#define BBCF_CONTROLPRESSED	(1<<2)
#define BBCF_ARROWCLICKED	(1<<3)

typedef struct {
	int cbSize;
	POINT pt;          // screen coordinates for menus
	char* pszModule;   // button owners name
	DWORD dwButtonId;  // registered button ID
	HWND hwndFrom;     // button parents HWND
	MCONTACT hContact;
	DWORD flags;       // BBCF_ flags
} CustomButtonClickData;

#endif  //M_MSG_BUTTONSBAR_H__