-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutil.h
50 lines (42 loc) · 1.15 KB
/
util.h
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
/*
* Created by patryk on 24.06.16.
*/
#ifndef WINGUI_UTIL_H
#define WINGUI_UTIL_H
#include <windows.h>
#include "subtracks.h"
#include "AXCtrl.h"
#define VSAFILEFILTER TEXT("Dank memes(*.vsa)\0*.vsa\0")
#define VSAEXEFILTER TEXT("The good shit(VSA.EXE)\0VSA.EXE\0")
#define VSBFILTER TEXT("Subtracks(*.vsb)\0*.vsb\0")
#define VSAEXEREGKEY TEXT("VSAPATH")
#define MIDIKEY TEXT("MIDIDEV")
#define REGROOT TEXT("Software\\P4t\\MIDI")
#define STATE_PLAYING (TEXT(">"))
#define STATE_LOOPING (TEXT("o"))
enum columns {
STATE,
NAME,
START_TEXT,
STOP_TEXT,
START,
STOP,
COL_LEN
};
enum statusbar_cells {
HELLIFIKNEW,
MIDI_CELL,
LOOP_CELL,
CELLS_NUMBER
};
HRESULT GetVSAPath(LPWSTR path);
HRESULT GetMIDIName(LPWSTR name);
HRESULT OpenDialog(HWND parent, LPWSTR path, LPCWSTR filter);
HRESULT SaveDialog(HWND parent, LPWSTR path, LPCWSTR filter, LPCWSTR ext);
HRESULT SetMIDIName(LPWSTR name);
void FillList(HWND list, subtracks_list *obj);
void SetStates(HWND list, INT playing, INT looping);
void LongIntoString(LONG number, LPWSTR str);
LONG LongFromString(LPWSTR str);
void SetVSARange(AX_object *ctrl, long start, long stop);
#endif //WINGUI_UTIL_H