-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMyFunc.cpp
More file actions
executable file
·132 lines (132 loc) · 2.64 KB
/
MyFunc.cpp
File metadata and controls
executable file
·132 lines (132 loc) · 2.64 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
//-----------------------------------------------------------------------------
#include "MyFunc.h"
//-----------------------------------------------------------------------------
int GetWindowIDByName(const char* szWindowName)
{
return 11;
}
//-----------------------------------------------------------------------------
float GetWindowWidth(int nWindowID)
{
if (nWindowID == 111)
{
return 111.0f;
}
else
{
return 77.0f;
}
}
//-----------------------------------------------------------------------------
void SetWindowWidth(int nWindowID, float fWidth)
{
if (nWindowID == 111)
{
fWidth += 111.0f;
}
else
{
fWidth += 77.0f;
}
}
//-----------------------------------------------------------------------------
void GetWindowWidthHeight(int nWindowID, float& fWidth, float& fHeight)
{
if (nWindowID == 111)
{
fWidth = 111.0f;
fHeight = 222.0f;
}
else
{
fWidth = 77.0f;
fHeight = 88.0f;
}
}
//-----------------------------------------------------------------------------
void SetWindowText(int nWindowID, const char* szText)
{
if (nWindowID == 111)
{
szText = "";
}
else
{
szText = "";
}
}
//-----------------------------------------------------------------------------
const char* GetWindowText(int nWindowID)
{
if (nWindowID == 111)
{
return "text111";
}
else
{
return "text43";
}
}
//-----------------------------------------------------------------------------
float WindowHelp::GetWindowPosX(int nWindowID)
{
if (nWindowID == 111)
{
return 111.0f;
}
else
{
return 33.0f;
}
}
//-----------------------------------------------------------------------------
void WindowHelp::SetWindowPosX(int nWindowID, float fPosX)
{
if (nWindowID == 111)
{
fPosX = 222.0f;
}
else
{
fPosX = 33.0f;
}
}
//-----------------------------------------------------------------------------
void WindowHelp::GetWindowPos(int nWindowID, float& fPosX, float& fPosY)
{
if (nWindowID == 111)
{
fPosX = 111.0f;
fPosY = 222.0f;
}
else
{
fPosX = 77.0f;
fPosY = 88.0f;
}
}
//-----------------------------------------------------------------------------
void WindowHelp::SetWindowTexture(int nWindowID, const char* szTexture)
{
if (nWindowID == 111)
{
szTexture = "";
}
else
{
szTexture = "";
}
}
//-----------------------------------------------------------------------------
const char* WindowHelp::GetWindowTexture(int nWindowID)
{
if (nWindowID == 111)
{
return "Texture111";
}
else
{
return "Texture43";
}
}
//-----------------------------------------------------------------------------