//#include "cstdlib.h"
#include "stdlib.h"
#include "DateTimeForm.h"
#include "Hz16.h"
#include "CommPrg.h"
#include "StartUpForm.h"
#include "MainTestForm.h"
#include "Hz24.h"
#include "KeyboardForm.h"
#include "CtrlDevCtrl.h"
#include "StandardForm.h"
#include "PressureForm.h"
#include "DatabaseDetailsForm.h"
#include "CameraForm.h"
#include "MenuByForm.h"
#include "Stm32F7_LcdDriver.h"
#include "Lwip_comm.h"
#include "IPSetForm.h"
#include "MassSave.h"
#include "KeyboardForm.h"
#include "MULTIPAGE.h"
extern TNetCtrl NetCtrl;
static int ipset_now_input_edit_id;
static const TDisString DisString[] = {
{"IP地址", 306, 27, 72, 24},
{"子网掩码", 282, 80, 96, 24},
{"默认网关", 282, 139, 96, 24},
{"本地端口号", 258, 195, 120, 24},
{"目标端口号", 530, 195, 120, 24},
{"目标IP地址", 258, 251, 120, 24},
{".", 446, 18, 20, 40},
{".", 526, 18, 20, 40},
{".", 606, 18, 20, 40},
{".", 446, 74, 20, 40},
{".", 526, 74, 20, 40},
{".", 606, 74, 20, 40},
{".", 446, 130, 20, 40},
{".", 526, 130, 20, 40},
{".", 606, 130, 20, 40},
{".", 446, 242, 20, 40},
{".", 526, 242, 20, 40},
{".", 606, 242, 20, 40}
};
/*--------------------------------------------------------------------------------------------------------*/
static const GUI_WIDGET_CREATE_INFO IPSetDlg[] = {
{ FRAMEWIN_CreateIndirect, "", 0, 0, 0, LCD_XSIZE, LCD_YSIZE, WM_CF_SHOW, 0},
{ BUTTON_CreateIndirect, "", GUI_ID_BUTTON_HINT, 10, 572, 320, 24, WM_CF_SHOW, 0 },
{ BUTTON_CreateIndirect, "", GUI_ID_BUTTON_AIR_SOURCE, 384, 572, 144, 24, WM_CF_SHOW, 0 },
{ TEXT_CreateIndirect, "", GUI_ID_TEXT_AIR_SOURCE_STATE, 530, 572, 60, 24, WM_CF_SHOW, 0 },
{ BUTTON_CreateIndirect, "", GUI_ID_BUTTON_VERIFICATION_OFFICER, 600, 572, 84, 24, WM_CF_SHOW, 0 },
{ BUTTON_CreateIndirect, "", GUI_ID_BUTTON_VERIFICATION_OFFICER_VALUE, 684, 572, 96, 24, WM_CF_SHOW, 0 },
{ BUTTON_CreateIndirect, "", GUI_ID_BUTTON_TIME, 922, 572, 98, 24, WM_CF_SHOW, 0 },
// { TEXT_CreateIndirect, "", GUI_ID_BUTTON_VERSION, 780, 572, 142, 24, WM_CF_SHOW, 0 },
{ BUTTON_CreateIndirect, "", GUI_ID_BUTTON_CANCEL, 800, 514, 212, 50, WM_CF_SHOW, 0 },
};
/*--------------------------------------------------------------------------------------------------------*/
static const GUI_WIDGET_CREATE_INFO _aDialogCreate1[] = {
{ WINDOW_CreateIndirect, "", 0, 0, 0, 1000, 410, FRAMEWIN_CF_MOVEABLE },
{ BUTTON_CreateIndirect, "", GUI_ID_BUTTON_OK, 308, 319, 212, 50, WM_CF_SHOW, 0 },
{ BUTTON_CreateIndirect, "", GUI_ID_BUTTON_RESTORE, 528, 319, 212, 50, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE01, 386, 18, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE02, 466, 18, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE03, 546, 18, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE04, 626, 18, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE05, 386, 74, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE06, 466, 74, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE07, 546, 74, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE08, 626, 74, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE09, 386, 130, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE10, 466, 130, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE11, 546, 130, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE12, 626, 130, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE13, 386, 186, 120, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE14, 656, 186, 120, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE15, 386, 242, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE16, 466, 242, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE17, 546, 242, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE18, 626, 242, 60, 40, WM_CF_SHOW, 0 },
{ TEXT_CreateIndirect, "", GUI_ID_TEXT_PWD_HINT, 300, 290, 460, 24, WM_CF_SHOW, 0 },
};
/*--------------------------------------------------------------------------------------------------------*/
static const GUI_WIDGET_CREATE_INFO _aDialogCreate2[] = {
{ WINDOW_CreateIndirect, "", 0, 0, 0, 1000, 410, FRAMEWIN_CF_MOVEABLE },
{ BUTTON_CreateIndirect, "", GUI_ID_BUTTON_OK, 308, 319, 212, 50, WM_CF_SHOW, 0 },
{ BUTTON_CreateIndirect, "", GUI_ID_BUTTON_RESTORE, 528, 319, 212, 50, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE01, 386, 18, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE02, 466, 18, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE03, 546, 18, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE04, 626, 18, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE05, 386, 74, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE06, 466, 74, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE07, 546, 74, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE08, 626, 74, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE09, 386, 130, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE10, 466, 130, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE11, 546, 130, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE12, 626, 130, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE13, 386, 186, 120, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE14, 656, 186, 120, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE15, 386, 242, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE16, 466, 242, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE17, 546, 242, 60, 40, WM_CF_SHOW, 0 },
{ EDIT_CreateIndirect, "", GUI_ID_EDIT_VALUE18, 626, 242, 60, 40, WM_CF_SHOW, 0 },
{ TEXT_CreateIndirect, "", GUI_ID_TEXT_PWD_HINT, 300, 290, 460, 24, WM_CF_SHOW, 0 },
};
/*--------------------------------------------------------------------------------------------------------*/
static void SetKeyboardAddCBFun(void)
{
if ((ipset_now_input_edit_id < GUI_ID_EDIT_VALUE18))
{
ipset_now_input_edit_id++;
SetKeyboardFormInputHwin(WM_GetDialogItem(WM_GetParent(KeyboardFormSet.hwinIntput), ipset_now_inpu