soui-使用笔记

按钮

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

弹出框 MessageBox

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

不显示任务栏图标

去掉appWnd加上toolWindow

标签

SStatic* txt = (SStatic*)FindChildByName(L"txt_activeTips");

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

checkbox

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

img

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

combobox

SComboBox* cmb = (SComboBox*)FindChildByName(L"cmbComPort");
wstring port;
int idx = cmb->GetCurSel();
if (idx != -1)
{
port = cmb->GetLBText(idx);
}

设置半透明

UpdateLayerFromRenderTarget(m_memRT,128)