本文整理汇总了C++中CControlUI::SetToolTip方法的典型用法代码示例。如果您正苦于以下问题:C++ CControlUI::SetToolTip方法的具体用法?C++ CControlUI::SetToolTip怎么用?C++ CControlUI::SetToolTip使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CControlUI
的用法示例。
在下文中一共展示了CControlUI::SetToolTip方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ViCbSetToolTip
// BOOL ViCbSetToolTip(VApiHandle hWnd, LPCTSTR pstrName)
SQInteger ViCbSetToolTip(HSQUIRRELVM v)
{
SQInteger nargs = sq_gettop(v);
SQInteger Handle = 0;
CControlUI* pCtrl = NULL;
LPCTSTR pstrName = NULL;
if (!v || 2 + 1 != nargs) {goto _Exit_;}
if (OT_INTEGER != sq_gettype(v, 2)) {goto _Exit_;}
if (OT_STRING != sq_gettype(v, 3)) {goto _Exit_;}
sq_getinteger(v, 2, &Handle);
sq_getstring(v, 3, &pstrName);
pCtrl = QiHwHandleToCtrl(Handle);
if (!pCtrl) {goto _Exit_;}
pCtrl->SetToolTip(pstrName);
_Exit_:
sq_pushbool(v, TRUE);
return 1;
}
示例2: OnWindowInitialized
void UserDetailInfoDialog::OnWindowInitialized(TNotifyUI& msg)
{
module::UserInfoEntity userInfo;
if (!module::getUserListModule()->getUserInfoBySId(m_sid, userInfo))
{
LOG__(ERR, _T("getUserInfoBySId failed"));
return;
}
CControlUI* name = m_PaintManager.FindControl(_T("name"));
if (name)
{
name->SetText(userInfo.csNickName);
}
CControlUI* realName = m_PaintManager.FindControl(_T("realname"));
if (realName)
{
realName->SetText(userInfo.csName);
}
CControlUI* signInfo = m_PaintManager.FindControl(_T("signInfo"));
if (signInfo)
{
signInfo->SetText(util::stringToCString(userInfo.signature));
signInfo->SetToolTip(util::stringToCString(userInfo.signature));
}
CControlUI* sex = m_PaintManager.FindControl(_T("sex"));
if (sex)
{
if (1 == userInfo.gender)
{
sex->SetText(_T("小侠"));
}
else if (2 == userInfo.gender)
{
sex->SetText(_T("小仙"));
}
else
sex->SetText(_T("人妖"));
}
CControlUI* department = m_PaintManager.FindControl(_T("department"));
if (department)
{
department->SetText(util::stringToCString(userInfo.department));
}
CControlUI* telphone = m_PaintManager.FindControl(_T("telphone"));
if (telphone)
{
telphone->SetText(util::stringToCString(userInfo.telephone));
}
CControlUI* mail = m_PaintManager.FindControl(_T("mail"));
if (mail)
{
mail->SetText(util::stringToCString(userInfo.email));
}
m_AvatarUI = m_PaintManager.FindControl(_T("Avatar"));
if (m_AvatarUI)
{
m_AvatarUI->SetBkImage(util::stringToCString(userInfo.getAvatarPath()));
m_AvatarUI->SetToolTip(util::stringToCString(m_sid));
}
_refreshAvatar(userInfo.avatarUrl);
}