本文整理汇总了C++中MainFrame::SetIcon方法的典型用法代码示例。如果您正苦于以下问题:C++ MainFrame::SetIcon方法的具体用法?C++ MainFrame::SetIcon怎么用?C++ MainFrame::SetIcon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainFrame
的用法示例。
在下文中一共展示了MainFrame::SetIcon方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnInit
bool MyApp::OnInit()
{
MainFrame *frame = new MainFrame(NULL);
frame->SetIcon(wxICON(datcom)); // To Set App Icon
frame->Show();
return true;
}
示例2: OnInit
bool PRIMEServer::OnInit()
{
#ifdef _DEBUG
Utilities::SetStdOutToNewConsole();
#endif
PRIME::Reply a;
m_frame = new MainFrame( (wxFrame *)NULL , -1, wxString::FromUTF8("FLOW Server") );
m_frame->SetIcon(wxICON(FLOW));
m_frame->Show( true );
a.set_type(PRIME::Reply_ReplyType_SPEED_TEST);
int size = a.ByteSize();
m_frame->log(wxString::Format("Size %d", size));
wxString str;
str.Format("%d",wxThread::GetCPUCount());
m_frame->log(str);
//printf("\nValue %d\n", a.type());
if(wxSocketBase::Initialize()){
wxString t;
t = wxString::Format("%d",a.type());
wxString s(wxT("Socket Base Initialized\n"+t));
m_frame->log(s);
} else {
//m_frame->C3OOutputText->AppendText(wxT("Socket Base NOT Initialized... Exiting!\n"));
}
return true;
}
示例3: OnInit
bool ConfigurationViewerApp::OnInit()
{
// Create the main application window
MainFrame *frame = new MainFrame("Configuration Viewer",
wxPoint(50, 50), wxSize(450, 340));
// Give it an icon
#ifdef __WXMSW__
frame->SetIcon(wxIcon("mondrian"));
#else
frame->SetIcon(wxIcon( mondrian_xpm ));
#endif
frame->Show(TRUE);
SetTopWindow(frame);
return TRUE;
}
示例4: OnInit
virtual bool OnInit() {
wxInitAllImageHandlers();
I18n::Init();
MainFrame* window = new MainFrame(NULL);
window->SetIcon(wxIcon(wxT("AAAAAAAAAAAAA")));
WindowManager::SetMainWindow(window);
window->Show(true);
window->Centre();
return true;
}
示例5: 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;
}