简体中文版
设为首页
收藏本站
技术手册 功能演示 文件下载 常见问答 体系结构 行业应用 合作交流 关于中高
订阅中高资讯
 

 


十一、密码

用户登陆后修改密码功能,其并没有特殊的预定义控件,只是给 OBJECT wxBUTTON 预定义了一个命令。首先采用 wxFORM 定义修改密码的输入界面,输入框的名字必须是 Pwd 和 RePwd ,设置 bButton.Command= VK_PASSWORD ,此按钮点击后执行修改密码。

OBJECT wxFORM aForm

{

OBJECT wxEDIT aEdit

{

aEdit.Name= Pwd

aEdit.Rect[]= 80, 100, 80, 20

}

OBJECT wxRICHEDIT bREdit

{

bREdit.Name= RePwd

bREdit.Rect[]= 80, 130, 80, 20

}

OBJECT wxBUTTON aButton

{

aButton.Name= changepwd1

aButton.Rect[]= 20, 222, 80, 20

aButton.Default= " 返回 "

aButton.Command= VK_LEFT

}

OBJECT wxBUTTON bButton

{

bButton.Name= changepwd2

bButton.Rect[]= 110, 222, 80, 20

bButton.Default= " 修改 "

bButton.Command= VK_PASSWORD

}

aForm.Rect[]= 18, 58, 160, 140

}

修改密码是否成功,通过在服务器 Common\resource.ini 设置,段名必须是 [Password] 。 [Password]

Rect= 80,170,150,40 // 提示消息显示位置和范围

Font= 15,0x33FF22 // 提示消息的字体和颜色

Success= 密码修改成功

Aborted= 密码修改失败


第一页

 

南京中帕软件有限公司 著作权所有,非经授权许可,请勿转载使用。
电话:025-86425335 移动:13951904263 Msn: nj_draker@hotmail.com
TEL: +86-25-86425335 FAX: +86-25-86425336 Email: info@active-web.net