当前位置: 首页>>代码示例>>C++>>正文


C++ FindControl函数代码示例

本文整理汇总了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;
		}
	}
}
开发者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


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