-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.cpp
More file actions
49 lines (37 loc) · 1.06 KB
/
Test.cpp
File metadata and controls
49 lines (37 loc) · 1.06 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
#include "stdafx.h"
#include "CMenu.cpp"
void test();
int main() {
setlocale(LC_ALL, "RUS");
SetConsoleCP(1251); // Ââîä ñ êîíñîëè â êîäèðîâêå 1251
SetConsoleOutputCP(1251);
hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
int slots = 0;
Menu *menu = NULL;
menu = CMenu(menu, 3);
menu->text[menu->slots].str = "D)Ñòåê";
menu->binds[menu->slots].binds = "DÂ";
menu->pointers[menu->slots] = (int)(void*)&test;
menu->slots++;
menu->text[menu->slots].str = "F)Äåê";
menu->binds[menu->slots].binds = "FÀ";
menu->pointers[menu->slots] = (int)(void*)&test;
menu->slots++;
menu->text[menu->slots].str = "G)Ëèñò";
menu->binds[menu->slots].binds = "GÏ";
menu->pointers[menu->slots] = (int)(void*)&test;
menu->properties.header = "Ìåíþ ïðîãðàììû:";
menu->properties.height = 0;
menu->properties.coords.x = 7;
menu->properties.coords.y = 4;
menu->properties.size.height = 14;
menu->properties.size.width = 30;
menu->properties.dbreak.binds = "PÇ";
menu->properties.prioritet = 0;
SmartChoose(menu);
_getch();
}
void test() {
printf_s("It's works");
_getch();
}