• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ FindControl函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中FindControl函数的典型用法代码示例。如果您正苦于以下问题:C++ FindControl函数的具体用法?C++ FindControl怎么用?C++ FindControl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了FindControl函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
		}
	}
}
开发者ID:sunpeng196,项目名称:NIM_PC_UIKit,代码行数:28,代码来源:member_manager.cpp


示例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;
}
开发者ID:hjhong,项目名称:MyDuiLib,代码行数:35,代码来源:SkinWindow.cpp


示例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);
}
开发者ID:lightgemini78,项目名称:Starshatter-Rearmed,代码行数:32,代码来源:MsnPkgDlg.cpp


示例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));
}
开发者ID:netease-im,项目名称:NIM_PC_Demo,代码行数:27,代码来源:rts_form.cpp


示例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);
}
开发者ID:netease-im,项目名称:NIM_PC_Demo,代码行数:7,代码来源:rts_form.cpp


示例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;
}
开发者ID:galek,项目名称:dava.framework,代码行数:28,代码来源:AutotestingSystemLua.cpp


示例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);
    }
}
开发者ID:Banbury,项目名称:starshatter-open,代码行数:29,代码来源:CmdMissionsDlg.cpp


示例8: FindControl

void
LoadDlg::RegisterControls()
{
	title    = FindControl(100);
	activity = FindControl(101);
	progress = (Slider*) FindControl(102);
}
开发者ID:The-E,项目名称:Starshatter-Experimental,代码行数:7,代码来源:LoadDlg.cpp


示例9: FindControl

void ChatroomFrontpage::OnWndSizeMax(bool max)
{
	if (!m_pRoot)
		return;

	FindControl(L"maxbtn")->SetVisible(!max);
	FindControl(L"restorebtn")->SetVisible(max);
}
开发者ID:netease-im,项目名称:NIM_PC_Demo,代码行数:8,代码来源:chatroom_frontpage.cpp


示例10: FindControl

void
CmpLoadDlg::RegisterControls()
{
	img_title    = (ImageBox*) FindControl(100);
	lbl_title    =             FindControl(200);
	lbl_activity =             FindControl(101);
	lbl_progress = (Slider*)   FindControl(102);
}
开发者ID:The-E,项目名称:Starshatter-Experimental,代码行数:8,代码来源:CmpLoadDlg.cpp


示例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);
	}
}
开发者ID:The-E,项目名称:Starshatter-Experimental,代码行数:58,代码来源:MsnSelectDlg.cpp


示例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);
}
开发者ID:sunpeng196,项目名称:NIM_PC_UIKit,代码行数:9,代码来源:session_form_team.cpp


示例13: FindControl

void
CmdMsgDlg::RegisterControls()
{
    title   = FindControl(100);
    message = FindControl(101);

    apply   = (Button*) FindControl(1);
    REGISTER_CLIENT(EID_CLICK, apply, CmdMsgDlg, OnApply);
}
开发者ID:Banbury,项目名称:starshatter-open,代码行数:9,代码来源:CmdMsgDlg.cpp


示例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);
}
开发者ID:Banbury,项目名称:starshatter-open,代码行数:9,代码来源:CmpCompleteDlg.cpp


示例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);
}
开发者ID:Banbury,项目名称:starshatter-open,代码行数:10,代码来源:AwardShowDlg.cpp


示例16: FindControl

void
MsnEditNavDlg::RegisterControls()
{
	btn_accept     = (Button*) FindControl(  1);
	btn_cancel     = (Button*) FindControl(  2);
	btn_sit        = (Button*) FindControl(301);
	btn_pkg        = (Button*) FindControl(302);
	btn_map        = (Button*) FindControl(303);

	txt_name       = (EditBox*)  FindControl(201);
	cmb_type       = (ComboBox*) FindControl(202);
	cmb_system     = (ComboBox*) FindControl(203);
	cmb_region     = (ComboBox*) FindControl(204);

	if (btn_accept)
	REGISTER_CLIENT(EID_CLICK,    btn_accept, MsnEditNavDlg, OnCommit);

	if (btn_cancel)
	REGISTER_CLIENT(EID_CLICK,    btn_cancel, MsnEditNavDlg, OnCancel);

	if (btn_sit)
	REGISTER_CLIENT(EID_CLICK,    btn_sit,    MsnEditNavDlg, OnTabButton);

	if (btn_pkg)
	REGISTER_CLIENT(EID_CLICK,    btn_pkg,    MsnEditNavDlg, OnTabButton);

	if (btn_map)
	REGISTER_CLIENT(EID_CLICK,    btn_map,    MsnEditNavDlg, OnTabButton);

	if (cmb_system)
	REGISTER_CLIENT(EID_SELECT,   cmb_system, MsnEditNavDlg, OnSystemSelect);
}
开发者ID:The-E,项目名称:Starshatter-Experimental,代码行数:32,代码来源:MsnEditNavDlg.cpp


示例17: InitWindow

void SessionForm::InitWindow()
{
	m_pRoot->AttachBubbledEvent(ui::kEventAll, nbase::Bind(&SessionForm::OnNotify, this, std::placeholders::_1));
	m_pRoot->AttachBubbledEvent(ui::kEventClick, nbase::Bind(&SessionForm::OnClicked, this, std::placeholders::_1));

	merge_list_ = static_cast<ListBox*>(FindControl(L"merge_list"));
	session_box_tab_ = static_cast<TabBox*>(FindControl(L"session_box_tab"));

	merge_list_->AttachSelect(nbase::Bind(&SessionForm::OnMergeItemSelected, this, std::placeholders::_1));
	
	InitDragDrop();
}
开发者ID:netease-im,项目名称:NIM_PC_Demo,代码行数:12,代码来源:session_form.cpp


示例18: FindControl

void
MsnWepDlg::RegisterControls()
{
	lbl_element    = FindControl(601);
	lbl_type       = FindControl(602);
	lbl_weight     = FindControl(603);
	loadout_list   = (ListBox*)  FindControl(604);
	beauty         = (ImageBox*) FindControl(300);
	player_desc    =             FindControl(301);

	if (loadout_list)
	REGISTER_CLIENT(EID_SELECT, loadout_list, MsnWepDlg, OnLoadout);

	for (int i = 0; i < 8; i++) {
		lbl_desc[i] = FindControl(500 + i*10);
		lbl_station[i] = FindControl(401 + i);

		for (int n = 0; n < 8; n++) {
			btn_load[i][n] = (Button*) FindControl(500 + i*10 + n + 1);

			if (btn_load[i][n]) {
				if (i == 0) {
					if (n == 0)
					btn_load[i][n]->GetPicture(led_off);
					else if (n == 1)
					btn_load[i][n]->GetPicture(led_on);
				}

				btn_load[i][n]->SetPicture(led_off);
				btn_load[i][n]->SetPictureLocation(4); // centered
				REGISTER_CLIENT(EID_CLICK, btn_load[i][n], MsnWepDlg, OnMount);
			}
		}
	}

	RegisterMsnControls(this);

	if (commit)
	REGISTER_CLIENT(EID_CLICK, commit, MsnWepDlg, OnCommit);

	if (cancel)
	REGISTER_CLIENT(EID_CLICK, cancel, MsnWepDlg, OnCancel);

	if (sit_button)
	REGISTER_CLIENT(EID_CLICK, sit_button, MsnWepDlg, OnTabButton);

	if (pkg_button)
	REGISTER_CLIENT(EID_CLICK, pkg_button, MsnWepDlg, OnTabButton);

	if (nav_button)
	REGISTER_CLIENT(EID_CLICK, nav_button, MsnWepDlg, OnTabButton);

	if (wep_button)
	REGISTER_CLIENT(EID_CLICK, wep_button, MsnWepDlg, OnTabButton);
}
开发者ID:The-E,项目名称:Starshatter-Experimental,代码行数:55,代码来源:MsnWepDlg.cpp


示例19: FindControl

void
ExitDlg::RegisterControls()
{
    if (apply)
    return;

    credits = (RichTextBox*) FindControl(201);

    apply   = (Button*) FindControl(1);
    REGISTER_CLIENT(EID_CLICK, apply, ExitDlg, OnApply);

    cancel  = (Button*) FindControl(2);
    REGISTER_CLIENT(EID_CLICK, cancel, ExitDlg, OnCancel);
}
开发者ID:Banbury,项目名称:starshatter-open,代码行数:14,代码来源:ExitDlg.cpp


示例20: SetIcon

void CustomMsgForm::InitWindow()
{
	if (nim_ui::UserConfig::GetInstance()->GetDefaultIcon() > 0)
		SetIcon(nim_ui::UserConfig::GetInstance()->GetDefaultIcon());

	SetTaskbarTitle(L"自定义消息通知");
	m_pRoot->AttachBubbledEvent(ui::kEventClick, nbase::Bind(&CustomMsgForm::OnClicked, this, std::placeholders::_1));

	richedit_apns_ = (RichEdit*)FindControl(L"re_apns");
	richedit_msg_ = (RichEdit*)FindControl(L"re_msg");
	richedit_attach_ = (RichEdit*)FindControl(L"re_attach");
	rec_name_ = (Label*)FindControl(L"receiver");
	msg_mode_ = (CheckBox*)FindControl(L"msg_mode");
}
开发者ID:netease-im,项目名称:NIM_PC_Demo,代码行数:14,代码来源:custom_msg_form.cpp



注:本文中的FindControl函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ FindDevice函数代码示例发布时间:2022-05-30
下一篇:
C++ FindCommand函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap