本文整理汇总了C++中FindControl函数的典型用法代码示例。如果您正苦于以下问题:C++ FindControl函数的具体用法?C++ FindControl怎么用?C++ FindControl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了FindControl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
void MemberManagerForm::OnQueryTeamMembers(const std::string& tid, int member_count, const std::list<nim::TeamMemberProperty>& team_member_info_list)
{
for (auto& team_member_info : team_member_info_list)
{
if (user_id_ == team_member_info.GetAccountID())
{
user_type_ = team_member_info.GetUserType();
if (user_type_ == nim::kNIMTeamUserTypeCreator)
{
((Option*)FindControl(L"owner"))->Selected(true);
}
else if (user_type_ == nim::kNIMTeamUserTypeManager)
{
((Option*)FindControl(L"manager"))->Selected(true);
}
else if (user_type_ == nim::kNIMTeamUserTypeNomal)
{
((Option*)FindControl(L"member"))->Selected(true);
}
std::string team_card = team_member_info.GetNick();
re_team_card_->SetUTF8Text(team_card);
team_card_ = team_card;
break;
}
}
}
示例2: sLog
LRESULT YSkinWindow::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
sLog("YSkinWindow::OnCreate");
ModifyStyle(WS_CAPTION,WS_CLIPSIBLINGS | WS_CLIPCHILDREN);
if(!RegisterSkin(_T("changeskinwin.xml"),0,this))
return 0;
GetPaintMgr()->AddNotifier(this);
RECT rcClient;
::GetClientRect(*this, &rcClient);
::SetWindowPos(*this, NULL, rcClient.left, rcClient.top, rcClient.right - rcClient.left, \
rcClient.bottom - rcClient.top, SWP_FRAMECHANGED);
FindControl(_pSkinLayout,_T("tabs"));
FindControl(_pSysSkinLayout,_T("SysSkinLayout"));
FindControl(_pMySkinLayout,_T("MySkinLayout"));
FindControl(_pWebSkin,_T("web_skin"));
ASSERT(_pWebSkin&&_pSysSkinLayout&&_pSkinLayout&&_pMySkinLayout);
_pSkinJsHandler = new CSkinJsHandler(_pWebSkin);
this->InitJsHandler(_pSkinJsHandler);
_pWebSkin->SetWebBrowserEventHandler(_pSkinJsHandler);
theMainWin->BroadCast();
LoadSysSkin();
LoadMySkin();
return 0;
}
示例3: FindControl
void
MsnPkgDlg::RegisterControls()
{
pkg_list = (ListBox*) FindControl(320);
nav_list = (ListBox*) FindControl(330);
for (int i = 0; i < 5; i++)
threat[i] = FindControl(251 + i);
RegisterMsnControls(this);
if (pkg_list)
REGISTER_CLIENT(EID_SELECT, pkg_list, MsnPkgDlg, OnPackage);
if (commit)
REGISTER_CLIENT(EID_CLICK, commit, MsnPkgDlg, OnCommit);
if (cancel)
REGISTER_CLIENT(EID_CLICK, cancel, MsnPkgDlg, OnCancel);
if (sit_button)
REGISTER_CLIENT(EID_CLICK, sit_button, MsnPkgDlg, OnTabButton);
if (pkg_button)
REGISTER_CLIENT(EID_CLICK, pkg_button, MsnPkgDlg, OnTabButton);
if (nav_button)
REGISTER_CLIENT(EID_CLICK, nav_button, MsnPkgDlg, OnTabButton);
if (wep_button)
REGISTER_CLIENT(EID_CLICK, wep_button, MsnPkgDlg, OnTabButton);
}
示例4: ShowTip
void RtsForm::ShowStartUI(bool creater)
{
need_ack_ = !creater;
if (creater)
{
ShowTip(L"正在邀请对方,请稍后");
}
else
{
ShowTip(L"邀请你加入白板");
show_endmsg_ = true;
}
Control* accept = FindControl(L"btn_accept");
accept->SetVisible(!creater);
Control* reject = FindControl(L"btn_reject");
reject->SetVisible(!creater);
Control* cancel = FindControl(L"btn_cancel");
cancel->SetVisible(creater);
if (creater)
{
nim::Rts::StartChannelCallback cb = nbase::Bind(&RtsForm::OnStartRtsCb, this, session_id_, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4);
nim::Rts::StartChannel(type_, uid_, nbase::UTF16ToUTF8(L"白板通话邀请test"), "rts custom info", cb);
}
auto closure = nbase::Bind(&RtsForm::NoActiveTimer, this);
nbase::ThreadManager::PostDelayedTask(kThreadUI, closure, nbase::TimeDelta::FromSeconds(40));
}
示例5: ShowBoardUI
void RtsForm::ShowBoardUI()
{
Box* status_page = (Box*)FindControl(L"status_page");
status_page->SetVisible(false);
Box* board_page = (Box*)FindControl(L"board_page");
board_page->SetVisible(true);
}
示例6: atoi
UIControl* AutotestingSystemLua::FindControl(UIControl* srcControl, const String &controlName)
{
if(UIControlSystem::Instance()->GetLockInputCounter() > 0) return NULL;
if(srcControl)
{
int32 index = atoi(controlName.c_str());
if(Format("%d",index) != controlName)
{
// not number
return srcControl->FindByName(controlName);
}
else
{
// number
UIList* list = dynamic_cast<UIList*>(srcControl);
if(list)
{
return FindControl(list, index);
}
else
{
return FindControl(srcControl, index);
}
}
}
return NULL;
}
示例7: FindControl
void
CmdMissionsDlg::RegisterControls()
{
lst_missions = (ListBox*) FindControl(401);
txt_desc = FindControl(402);
btn_accept = (Button*) FindControl(403);
RegisterCmdControls(this);
if (btn_save)
REGISTER_CLIENT(EID_CLICK, btn_save, CmdMissionsDlg, OnSave);
if (btn_exit)
REGISTER_CLIENT(EID_CLICK, btn_exit, CmdMissionsDlg, OnExit);
for (int i = 0; i < 5; i++) {
if (btn_mode[i])
REGISTER_CLIENT(EID_CLICK, btn_mode[i], CmdMissionsDlg, OnMode);
}
if (lst_missions) {
REGISTER_CLIENT(EID_SELECT, lst_missions, CmdMissionsDlg, OnMission);
}
if (btn_accept) {
btn_accept->SetEnabled(false);
REGISTER_CLIENT(EID_CLICK, btn_accept, CmdMissionsDlg, OnAccept);
}
}
示例8: FindControl
void
LoadDlg::RegisterControls()
{
title = FindControl(100);
activity = FindControl(101);
progress = (Slider*) FindControl(102);
}
示例9: FindControl
void ChatroomFrontpage::OnWndSizeMax(bool max)
{
if (!m_pRoot)
return;
FindControl(L"maxbtn")->SetVisible(!max);
FindControl(L"restorebtn")->SetVisible(max);
}
示例10: FindControl
void
CmpLoadDlg::RegisterControls()
{
img_title = (ImageBox*) FindControl(100);
lbl_title = FindControl(200);
lbl_activity = FindControl(101);
lbl_progress = (Slider*) FindControl(102);
}
示例11: FindControl
void
MsnSelectDlg::RegisterControls()
{
btn_accept = (Button*) FindControl( 1);
btn_cancel = (Button*) FindControl( 2);
if (btn_accept) {
btn_accept->SetEnabled(false);
REGISTER_CLIENT(EID_CLICK, btn_accept, MsnSelectDlg, OnAccept);
}
if (btn_cancel) {
REGISTER_CLIENT(EID_CLICK, btn_cancel, MsnSelectDlg, OnCancel);
}
btn_mod = (Button*) FindControl(300);
btn_new = (Button*) FindControl(301);
btn_edit = (Button*) FindControl(302);
btn_del = (Button*) FindControl(303);
if (btn_mod)
REGISTER_CLIENT(EID_CLICK, btn_mod, MsnSelectDlg, OnMod);
if (btn_new)
REGISTER_CLIENT(EID_CLICK, btn_new, MsnSelectDlg, OnNew);
if (btn_edit)
REGISTER_CLIENT(EID_CLICK, btn_edit, MsnSelectDlg, OnEdit);
if (btn_del) {
REGISTER_CLIENT(EID_CLICK, btn_del, MsnSelectDlg, OnDel);
REGISTER_CLIENT(EID_USER_1, btn_del, MsnSelectDlg, OnDelConfirm);
}
description = FindControl(200);
cmb_campaigns = (ComboBox*) FindControl(201);
lst_campaigns = (ListBox*) FindControl(203);
lst_missions = (ListBox*) FindControl(202);
if (cmb_campaigns) {
REGISTER_CLIENT(EID_SELECT, cmb_campaigns, MsnSelectDlg, OnCampaignSelect);
}
if (lst_campaigns) {
REGISTER_CLIENT(EID_SELECT, lst_campaigns, MsnSelectDlg, OnCampaignSelect);
lst_campaigns->SetSelectedStyle(ListBox::LIST_ITEM_STYLE_FILLED_BOX);
lst_campaigns->SetLeading(4);
}
if (lst_missions) {
REGISTER_CLIENT(EID_SELECT, lst_missions, MsnSelectDlg, OnMissionSelect);
lst_missions->SetSelectedStyle(ListBox::LIST_ITEM_STYLE_FILLED_BOX);
lst_missions->SetLeading(4);
}
}
示例12: FindControl
void SessionForm::CheckTeamType(nim::NIMTeamType type)
{
bool show = (type == nim::kNIMTeamTypeAdvanced);
Control* split = FindControl(L"frame_mid_split");
split->SetVisible(show);
Control* frame_right = FindControl(L"frame_right");
frame_right->SetVisible(show);
}
示例13: FindControl
void
CmdMsgDlg::RegisterControls()
{
title = FindControl(100);
message = FindControl(101);
apply = (Button*) FindControl(1);
REGISTER_CLIENT(EID_CLICK, apply, CmdMsgDlg, OnApply);
}
示例14: FindControl
void
CmpCompleteDlg::RegisterControls()
{
img_title = (ImageBox*) FindControl(100);
lbl_info = FindControl(101);
btn_close = (Button*) FindControl(1);
REGISTER_CLIENT(EID_CLICK, btn_close, CmpCompleteDlg, OnClose);
}
示例15: FindControl
void
AwardShowDlg::RegisterControls()
{
lbl_name = FindControl(203);
lbl_info = FindControl(201);
img_rank = (ImageBox*) FindControl(202);
btn_close = (Button*) FindControl(1);
REGISTER_CLIENT(EID_CLICK, btn_close, AwardShowDlg, OnClose);
}