CODE:function getmessage(1, WM_CREATE)
{
SecondaryWindow = formatiw(gethwnd(1));
Histance = GetWindowLong(gethwnd(1), GWL_HINSTANCE);
SetWindowLong(gethwnd(1), GWL_STYLE, WS_SYSMENU + WS_CAPTION);
SetWindowLong(gethwnd(1), GWL_EXSTYLE, GetWindowLong(gethwnd(1), GWL_EXSTYLE) + WS_EX_CONTEXTHELP);
Object_Icon2 = LoadImage(0, temp_fold+"Icon2.ico", IMAGE_ICON, 0, 0, LR_LOADFROMFILE | LR_LOADTRANSPARENT);
SendMessage(gethwnd(1), WM_SETICON, ICON_SMALL, Object_Icon2);
Object_Image1 = LoadImage(0, temp_fold+"Replace.bmp", 0, 14, 14, 16);
Object_Font1 = CreateFont(-13, 0, 0, 0, 400, 0, 0, 0, 0, 0, 0, 0, 0, "Times New Roman");
Object_Tab1 = CreateWindow(0, "SysTabControl32", "", WS_VISIBLE | WS_CHILD | TCS_HOTTRACK | TCS_TOOLTIPS, 10, 10, 375, 253, gethwnd(1), 0, Histance, 0, 0);
strcpy(#Buffer3[0], "Основные");
sendmessage(TCM_INSERTITEM, 0, address(#TAGTCITEMA[0]), formatiw(Object_Tab1));
sleep(100);
strcpy(#Buffer3[0], "Настройка бота");
sendmessage(TCM_INSERTITEM, 1, address(#TAGTCITEMA[0]), formatiw(Object_Tab1));
sleep(100);
strcpy(#Buffer3[0], "О программе");
sendmessage(TCM_INSERTITEM, 2, address(#TAGTCITEMA[0]), formatiw(Object_Tab1));
for (int a=0; a<sizearray(Object_Checkbox); a++)
{
Object_Checkbox[a] = CreateWindow(0, "BUTTON", Text_Checkbox1[a], BS_AUTOCHECKBOX | WS_CHILD | WS_VISIBLE, 20, 40+step1, 300-step1, 20, gethwnd(1), 0, 0, 0);
SendMessage(Object_Checkbox[a], WM_SETFONT, Object_Font1, 1);
step1 = step1+20;
}
//Object_Hotkey1 = CreateWindow(0, "msctls_hotkey32", "", WS_VISIBLE | WS_CHILD, 20, 160, 100, 25, gethwnd(1), 0, Histance, 0, 0);
//=============
for (int k=0; k<sizearray(Object_Checkbox2); k++)
{
if (k < sizearray(Object_Checkbox2))
{
Object_Checkbox2[k] = CreateWindow(0, "BUTTON", Text_Checkbox2[k], BS_AUTOCHECKBOX | WS_CHILD | WS_VISIBLE, 20, 40+step2, 200-step2, 20, gethwnd(1), 0, 0, 0);
SendMessage(Object_Checkbox2[k], WM_SETFONT, Object_Font1, 1);
step2 = step2+20;
}
}
//=====================
for (int wb=0; wb<sizearray(Object_Static); wb++)
{
Object_Static[wb] = CreateWindow(0, "STATIC", Text_Static[wb], WS_CHILD | WS_VISIBLE | SS_NOTIFY, 20, 40+step3, 300, 20, gethwnd(1), 0, 0, 0);
SendMessage(Object_Static[wb], WM_SETFONT, Object_Font1, 1);
step3 = step3+25;
}
Object_Static7 = CreateWindow(0, "STATIC", "", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_BITMAP, 205, 40, 20, 20, gethwnd(1), 0, 0, 0);
Object_Edit1 = CreateWindow(WS_EX_CLIENTEDGE, "EDIT", individualcode(), WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL | ES_CENTER | ES_READONLY, 150, 140, 100, 20, gethwnd(1), 0, 0, 0);
if (Registered_User == 1)
{
SetWindowTextA(Object_Static[5], "Лицензия: <"+format(Difference)+" дней");
}
else
{
SetWindowTextA(Object_Static[5], "Лицензия: Отсутствует");
}
Object_Tooltip2 = CreateWindow(0, "tooltips_class32", "", 0, 0, 0, 0, 0, gethwnd(1), 0, 0, 0);
TOOLINFO[0] = 44;
TOOLINFO[1] = TTF_SUBCLASS;
TOOLINFO[9] = address(#Text_Tooltip[0]);
TOOLINFO[2] = Object_Static7;
TOOLINFO[6] = 300;
TOOLINFO[7] = 20;
strcpy(#Text_Tooltip[0], "Нажмите, что бы проверить обновление");
sendmessage(TTM_ADDTOOLA, 0, address(#TOOLINFO[0]), formatiw(Object_Tooltip2));
TOOLINFO[2] = Object_Static[2];
TOOLINFO[6] = 300;
TOOLINFO[7] = 20;
strcpy(#Text_Tooltip[0], "Нажмите, что бы выполнить действие");
sendmessage(TTM_ADDTOOLA, 0, address(#TOOLINFO[0]), formatiw(Object_Tooltip2));
TOOLINFO[2] = Object_Static[3];
TOOLINFO[6] = 300;
TOOLINFO[7] = 20;
strcpy(#Text_Tooltip[0], "Нажмите, что бы выполнить действие");
sendmessage(TTM_ADDTOOLA, 0, address(#TOOLINFO[0]), formatiw(Object_Tooltip2));
sendmessage(TTM_SETTIPBKCOLOR, 16777215, 0, formatiw(Object_Tooltip2));
sendmessage(TTM_SETDELAYTIME, TTDT_INITIAL, 0, formatiw(Object_Tooltip2));
MoveWindow(Object_Checkbox[0], 20, 40, 270, 20);
MoveWindow(Object_Checkbox[1], 20, 60, 250, 20);
MoveWindow(Object_Checkbox[2], 20, 80, 220, 20);
MoveWindow(Object_Checkbox[3], 20, 100, 235, 20);
MoveWindow(Object_Checkbox[4], 20, 120, 220, 20);
MoveWindow(Object_Checkbox[5], 20, 140, 220, 20);
MoveWindow(Object_Static[0], 20, 40, 185, 20);
MoveWindow(Object_Static[2], 20, 90, 235, 20);
MoveWindow(Object_Static[3], 20, 115, 225, 20);
MoveWindow(Object_Static[4], 20, 140, 100, 20);
SetWindowTextA(Object_Static[0], "Версия: "+Version_Program);
SendMessage(Object_Edit1, WM_SETFONT, Object_Font1, 1);
sendmessage(STM_SETIMAGE, 0, Object_Image1, formatiw(Object_Static7));
}