-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMirakelMonitorMain.h
More file actions
81 lines (72 loc) · 1.72 KB
/
MirakelMonitorMain.h
File metadata and controls
81 lines (72 loc) · 1.72 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#pragma once
#include <Windows.h>
#include <Windowsx.h>
#include <tchar.h>
#include "MirakelTypes.h"
#include "MirakelMonitor.h"
#include "MirakelMonitorUtilities.h"
#include "CCOLDefines.h"
#include <CommCtrl.h>
#include <stdio.h>
#include <time.h>
#include "TabFasebewakingsTijden.h"
#include "TabParameters.h"
#include "TabSwitches.h"
#include "TabTimers.h"
#include "TabCounters.h"
#include "TabMemoryElements.h"
#include "TabHelpElements.h"
#ifdef EXTRAMON
#include "TabTracerLog.h"
#include "TabParserPlus.h"
//#include "TabFasenlog.h"
#endif
#define TAB_WACHTTIJDEN 0
#define TAB_TIMERS 1
#define TAB_COUNTERS 2
#define TAB_PARAMETERS 3
#define TAB_SWITCHES 4
#define TAB_MEMORYELEMS 5
#define TAB_HELPELEMS 6
#ifdef EXTRAMON
#define TAB_TRACERLOG 7
#define TAB_PARSERPLUS 8
//#define TAB_FASENLOG 3
#define TAB_MAX 9
#else
#define TAB_MAX 7
#endif
HWND hParent = NULL;
HWND hMainWin = NULL;
HWND hMainTab = NULL;
HWND hTabs[TAB_MAX];
HINSTANCE hMainInstance;
char * cParentWinName;
int iCharWidth, iCharHeight;
int iSelectedTab;
char bInitialized = FALSE;
int update_monitor = 0;
clock_t last_clock = 0;
char lpszTemp1[SZBUFFERSIZE];
const char * TAB_MAIN_TITLE[TAB_MAX] =
{
"TFB",
"TM",
"CT",
"PRM",
"SCH",
"MM",
"HE",
#ifdef EXTRAMON
"Trace",
"Parser",
//"Log",
#endif
};
CONTROLLERSTRUCT * Controller;
unsigned long CALLBACK MirGetCTTime(void);
struct fasenlogentry * CALLBACK MirGetCCOLFCState(short fc);
LRESULT CALLBACK WindowProc(HWND hWndMir, UINT uMsg, WPARAM wParam, LPARAM lParam);
HWND CreateMainTabControl(HWND hwndParent, HINSTANCE hInst);
ATOM RegisterSomeClass(HINSTANCE hInstance, char * className, WNDPROC proc);
HRESULT OnSize(HWND hwndTab, LPARAM lParam);