本文整理汇总了C++中ITsStrFactoryPtr::MakeString方法的典型用法代码示例。如果您正苦于以下问题:C++ ITsStrFactoryPtr::MakeString方法的具体用法?C++ ITsStrFactoryPtr::MakeString怎么用?C++ ITsStrFactoryPtr::MakeString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ITsStrFactoryPtr
的用法示例。
在下文中一共展示了ITsStrFactoryPtr::MakeString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: stu
/*----------------------------------------------------------------------------------------------
Return the what's-this help string for the Date Dialog ellipsis button.
@param pt not used.
@param pptss Address of a pointer to an ITsString COM object for returning the help string.
@return true.
----------------------------------------------------------------------------------------------*/
bool AfDeFeEdBoxBut::DeButton::GetHelpStrFromPt(Point pt, ITsString ** pptss)
{
AssertPtr(pptss);
StrApp str;
str.Load(kstidEllipsisBtnDateWhatsThisHelp); // No context help available
ITsStrFactoryPtr qtsf;
qtsf.CreateInstance(CLSID_TsStrFactory);
StrUni stu(str);
CheckHr(qtsf->MakeString(stu.Bstr(), m_pdee->UserWs(), pptss));
return true;
}
示例2: Create
/*----------------------------------------------------------------------------------------------
Create a new TssEdit. psz can be NULL if the control should start out empty.
----------------------------------------------------------------------------------------------*/
void TssEdit::Create(HWND hwndPar, int cid, DWORD dwStyle, HWND hwndToolTip, const achar * psz,
ILgWritingSystemFactory * pwsf, int ws, IActionHandler * pacth)
{
AssertPtrN(psz);
AssertPtr(pwsf);
ITsStringPtr qtss;
if (psz)
{
ITsStrFactoryPtr qtsf;
qtsf.CreateInstance(CLSID_TsStrFactory);
StrUni stu(psz);
CheckHr(qtsf->MakeString(stu.Bstr(), ws, &qtss));
}
Create(hwndPar, cid, dwStyle, hwndToolTip, qtss, pwsf, ws, pacth);
}