soui-使用笔记

按钮

1
SImageButton* pBtn = (SImageButton*)FindChildByName(L"btn_authCode");

弹出框 MessageBox

1
SMessageBox(NULL, _T("找不到系统主题配置文件。"), _T("警告"), NULL);

不显示任务栏图标

1
去掉appWnd加上toolWindow

标签

1
2
3
SStatic* txt = (SStatic*)FindChildByName(L"txt_activeTips");

<text pos="280,88" align="right" colorText="#4a4a4aff">888987757786</text>

checkbox

1
2
3
SCheckBox* pwnd = (SCheckBox*)FindChildByName(L"chk_proxy");
if (pwnd->IsChecked())
{...}

img

1
2
SImageWnd* img = (SImageWnd*)FindChildByName(L"img_errTips");
img->SetVisible(FALSE);

combobox

1
2
3
4
5
6
7
SComboBox* cmb = (SComboBox*)FindChildByName(L"cmbComPort");
wstring port;
int idx = cmb->GetCurSel();