📄 iinputwindow.h
字号:
#ifndef _IINPUTWINDOW_H
#define _IINPUTWINDOW_H
#include "AeeStdLib.h"
#include "AeeText.h"
#include "AeeMenu.h"
#include "IStack.h"
//////////////////////////////////////////////////////////////////
// 输入窗口的实现 //
//////////////////////////////////////////////////////////////////
//输入窗口回调函数原型的定义
typedef boolean (*TInputDialogResp)(const AECHAR *response1, const AECHAR *response2, boolean bOK);
//文本输入控件的类型
typedef enum
{
IT_TEXT,
IT_PASSWORD,
IT_NUMBER
}TInputType;
//文本输入控件的相关信息
typedef struct _InputTextInfo
{
TInputType m_inputType;
AECHAR* m_pTitle;
AECHAR* m_pText;
}InputTextInfo;
//输入窗口数据结构的定义
typedef struct _IInputWin
{
AEETextInputMode m_wMode;
ITextCtl* m_pText1;
ITextCtl* m_pText2;
IMenuCtl* m_pSoftKeyCtl;
TInputDialogResp tpResponseFunction;
}IInputWin;
//创建一个输入对话框
boolean NewTextInputDialog(
InputTextInfo* pTextInfo1,
InputTextInfo* pTextInfo2,
TInputDialogResp tpResponseFunction);
//事件处理函数
boolean IINPUTWINDOW_EventHandle(void* pWin,AEEEvent eCode, uint16 wParam, uint32 dwParam);
//创建函数
void* IINPUTWINDOW_Create(IShell* pShell,void* pParam);
//释放函数
boolean IINPUTWINDOW_Release(IShell* pShell,void** pWin);
//绘制函数
boolean IINPUTWINDOW_Redraw(IShell* pShell,void* pWin);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -