界面上:

<Combo normalimage="file='Combo_nor.bmp' corner='2,2,24,2'" hotimage="file='Combo_over.bmp' corner='2,2,24,2'" pushedimage="file='Combo_over.bmp' corner='2,2,24,2'" dropboxsize="0,150" itemtextcolor="#FF000000" itemselectedtextcolor="#FF000000" itemselectedbkcolor="#FFC1E3FF" itemhottextcolor="#FFFF0000" itemhotbkcolor="#FF00F5FF" itemdisabledtextcolor="#FFCCCCCC" itemdisabledbkcolor="#FFFFFFFF" name="combo1" float="true" pos="138,6,0,0" width="140" height="22">

<ListLabelElement name="china" text="中文" selected="true"/>

<ListLabelElement name="english" text="英文"/>

</Combo>

绑定combox的下拉通知事件

GetFunctionAddress $0 OnComboxLanageChange

nsNiuniuSkin::BindCallBack $hInstallDlg "combo1" $0

切换时间:

Function OnComboxLanageChange

nsNiuniuSkin::GetControlAttribute $hInstallDlg "combo1" "text"

Pop $0

${If} $0 == "张三" ;当前为中文的情况,切换字符串为中文

;更改当前文本

nsNiuniuSkin::SetControlAttribute $hInstallDlg "btnInstall" "text" "立即安装"

nsNiuniuSkin::SetControlAttribute $hInstallDlg "chkShotcut" "text" "快捷方式"

;更改图片

nsNiuniuSkin::SetControlAttribute $hInstallDlg "firstbgtop" "bkimage" "bgtop.png"

${Elseif} $0 == "李四" ;当前为英文的情况,切换字符串为引文

nsNiuniuSkin::SetControlAttribute $hInstallDlg "btnInstall" "text" "OnInstall"

nsNiuniuSkin::SetControlAttribute $hInstallDlg "chkShotcut" "text" "CutShort"

;更改图片

nsNiuniuSkin::SetControlAttribute $hInstallDlg "firstbgtop" "bkimage" "bgtop1.png"

${EndIf}

FunctionEnd