-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtooltip.c
executable file
·56 lines (52 loc) · 1.18 KB
/
tooltip.c
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
45
46
47
48
49
50
51
52
53
54
55
56
#define STRICT
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <commctrl.h>
void _stdcall DoToolbarNotify(TBNOTIFY *pHdr)
{
LPSTR pReply;
TOOLTIPTEXT *pTT;
if (pHdr->hdr.code==TTN_NEEDTEXT) {
pTT = (TOOLTIPTEXT*)pHdr;
switch (pTT->hdr.idFrom) {
case(10):
pReply="Create new record";
break;
case(20):
pReply="Open existing record";
break;
case(30):
pReply="Close current record";
break;
case(503):
pReply="Save current parameters";
break;
case(60):
pReply="Copy content to clipboard";
break;
case(301):
pReply="Start energy levels calculation";
break;
case(302):
pReply="Start fitting procedure";
break;
case(3000):
pReply="Stop current calculation";
break;
case(601):
pReply="Database of reduced matrix elements";
break;
case(680):
pReply="Database of energy levels";
break;
case(101):
pReply="Help";
break;
default:
pReply="Unknown";
}
lstrcpy(pTT->szText, pReply);
}
}