当前位置: 首页>>代码示例>>C++>>正文


C++ MainFrame::SetIcon方法代码示例

本文整理汇总了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;
}
开发者ID:guneysu-arsiv,项目名称:wxdatcom,代码行数:7,代码来源:Main.cpp

示例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;
}
开发者ID:huangyt,项目名称:FLOW,代码行数:31,代码来源:fwServer.cpp

示例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;
}
开发者ID:DOCGroup,项目名称:ACE_TAO,代码行数:18,代码来源:ConfigurationViewer.cpp

示例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;
	  }
开发者ID:holywyvern,项目名称:qgf,代码行数:10,代码来源:main.cpp

示例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;
    }
开发者ID:nohwnd,项目名称:touchcursor,代码行数:39,代码来源:main.cpp


注:本文中的MainFrame::SetIcon方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。