本文整理汇总了C++中ToolBar::GetTitle方法的典型用法代码示例。如果您正苦于以下问题:C++ ToolBar::GetTitle方法的具体用法?C++ ToolBar::GetTitle怎么用?C++ ToolBar::GetTitle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ToolBar
的用法示例。
在下文中一共展示了ToolBar::GetTitle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ShowWindowedToolBar
/// This will make the floating ToolBarFrame appear at the specified location
void ToolBarStub::ShowWindowedToolBar(wxPoint * where /* = NULL */ )
{
if (!mWindowedStatus) {
if (!mToolBarFrame) {
//Create a frame with a toolbar of type tbt inside it
if (mType == MeterToolBarID)
mToolBarFrame = new ToolBarFullFrame(mFrameParent, mType);
else
mToolBarFrame = new ToolBarMiniFrame(mFrameParent, mType);
//Get the newly-created toolbar to get some info from it.
ToolBar * tempTB = mToolBarFrame->GetToolBar();
mTitle = tempTB->GetTitle();
mSize = tempTB->GetSize();
}
//Move the frame to the mouse position
if (where) {
mToolBarFrame->DoMove(*where);
}
//Show the new window
mToolBarFrame->DoShow();
}
mWindowedStatus = true;
}
示例2: ToolBarFrame
// ToolBarStub Constructer. Requires a ToolBarType.
// Whenever a ToolBarStub is around, there will be a floating
// ToolBarFrame. It may be hidden or unhidden.
ToolBarStub::ToolBarStub(wxWindow * Parent, enum ToolBarType tbt)
{
//Create a frame with a toolbar of type tbt inside it
mToolBarFrame = new ToolBarFrame(Parent, tbt);
//Get the newly-created toolbar to get some info from it.
ToolBar * tempTB = mToolBarFrame->GetToolBar();
mType = tbt;
mTitle = tempTB->GetTitle();
mSize = tempTB->GetSize();
mWindowedStatus = false;
mLoadedStatus = true;
}