forked from igroglaz/a2mgr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zxmgr.h
65 lines (48 loc) · 1.53 KB
/
zxmgr.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#pragma once
#include <windows.h>
#undef GetWindowLong
#undef DrawText
#define FONT1 0x00629C88
#define FONT2 0x0062A6C8
#define FONT3 0x0062AFF8
#define FONT4 0x0062AF90
#define FONT_COLOR_WHITE 0x00629C48
#define FONT_COLOR_GRAY 0x0062AAF0
#define FONT_EXTCOLOR_GOLD 0x0062B088
#define FONT_EXTCOLOR_BROWN 0x0062B048
#define FONT_EXTCOLOR_GOLDBRIGHT 0x0062AF8C
#define FONT_ALIGN_RIGHT 1
#define FONT_ALIGN_CENTER 2
#define FONT_ALIGN_LEFT 0
namespace zxmgr
{
unsigned long AfxGetMainWnd();
namespace GUI
{
unsigned long _stdcall GetWindowLong(unsigned long cptr, unsigned long which);
void _stdcall RepaintWindow(unsigned long cptr);
void _stdcall RepaintWindowIndirect(unsigned long cptr);
void GetClientRect(unsigned long cptr, RECT* rec);
}
namespace Font
{
unsigned long GetColor(unsigned long t);
void DrawText(unsigned long cptr, int x, int y, const char* string, unsigned long align, unsigned long color, unsigned long shadowpos);
unsigned long MeasureTextWidth(unsigned long cptr, const char* string);
}
void FillRect(int left, int top, int right, int bottom, unsigned long color);
void UpdateScreen();
void LockBuffer();
void UnlockBuffer();
char* GetPatchString(unsigned long idx);
void WriteChatRaw(const char*);
void WriteChat(const char*, ...);
void WriteChatA(const char*, ...);
int GlobalReceive();
void DisplayMouse();
void DoMessageLoop();
HWND GetHWND();
void LockHighSurface();
void UnlockHighSurface();
void AfxAbort();
}