本文整理汇总了C++中MainFrame::GetTitle方法的典型用法代码示例。如果您正苦于以下问题:C++ MainFrame::GetTitle方法的具体用法?C++ MainFrame::GetTitle怎么用?C++ MainFrame::GetTitle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainFrame
的用法示例。
在下文中一共展示了MainFrame::GetTitle方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnInit
virtual bool OnInit() {
// Activate an earlier instance if found,
// or quit it if argv[1] == wxT("quit")
bool quit = argc>1 && !wxStricmp(argv[1], wxT("quit"));
const wxChar* title = wxT("TouchCursor Configuration");
if (quit) {
win32funcs::QuitExistingWindow(title);
return false;
}
else {
bool found = win32funcs::RaiseExistingWindow(title);
if (found) return false;
}
wxXmlResource::Get()->AddHandler(new wxFrameXmlHandler);
wxXmlResource::Get()->AddHandler(new wxDialogXmlHandler);
wxXmlResource::Get()->AddHandler(new wxNotebookXmlHandler);
wxXmlResource::Get()->AddHandler(new wxPanelXmlHandler);
wxXmlResource::Get()->AddHandler(new wxCheckBoxXmlHandler);
wxXmlResource::Get()->AddHandler(new wxRadioButtonXmlHandler);
wxXmlResource::Get()->AddHandler(new wxChoiceXmlHandler);
wxXmlResource::Get()->AddHandler(new wxListBoxXmlHandler);
wxXmlResource::Get()->AddHandler(new wxButtonXmlHandler);
wxXmlResource::Get()->AddHandler(new wxStaticTextXmlHandler);
wxXmlResource::Get()->AddHandler(new wxTextCtrlXmlHandler);
wxXmlResource::Get()->AddHandler(new wxSizerXmlHandler);
wxXmlResource::Get()->AddHandler(new wxStaticBitmapXmlHandler);
wxXmlResource::Get()->AddHandler(new wxStaticLineXmlHandler);
wxXmlResource::Get()->AddHandler(new wxHtmlWindowXmlHandler);
InitXmlResource();
MainFrame* frame = new MainFrame;
frame->SetIcon(wxICON(APP));
assert(frame->GetTitle() == title);
frame->Show();
SetTopWindow(frame);
return true;
}