X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/834362a2e400478c9e9022f17c515493eaeb1174..78bd7ed38ccdfdd5f2cf6cf77089046b9e3993b5:/src/msw/app.cpp diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 13b1806806..5cde142a75 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -43,7 +43,8 @@ #include "wx/msgdlg.h" #include "wx/intl.h" #include "wx/dynarray.h" - #include "wx/wxchar.h" +# include "wx/wxchar.h" +# include "wx/icon.h" #endif #include "wx/log.h" @@ -707,7 +708,7 @@ int wxEntry(WXHINSTANCE hInstance) //// Static member initialization -wxAppInitializerFunction wxApp::m_appInitFn = (wxAppInitializerFunction) NULL; +wxAppInitializerFunction wxAppBase::m_appInitFn = (wxAppInitializerFunction) NULL; wxApp::wxApp() { @@ -1061,21 +1062,6 @@ void wxApp::OnQueryEndSession(wxCloseEvent& event) } } -wxLog* wxApp::CreateLogTarget() -{ - return new wxLogGui; -} - -wxWindow* wxApp::GetTopWindow() const -{ - if (m_topWindow) - return m_topWindow; - else if (wxTopLevelWindows.GetCount() > 0) - return wxTopLevelWindows.GetFirst()->GetData(); - else - return NULL; -} - int wxApp::GetComCtl32Version() const { // have we loaded COMCTL32 yet? @@ -1149,6 +1135,30 @@ bool wxYield() return TRUE; } +wxIcon +wxApp::GetStdIcon(int which) const +{ + switch(which) + { + case wxICON_INFORMATION: + return wxIcon("wxICON_INFO"); + + case wxICON_QUESTION: + return wxIcon("wxICON_QUESTION"); + + case wxICON_EXCLAMATION: + return wxIcon("wxICON_WARNING"); + + default: + wxFAIL_MSG(_T("requested non existent standard icon")); + // still fall through + + case wxICON_HAND: + return wxIcon("wxICON_ERROR"); + } +} + + HINSTANCE wxGetInstance() { return wxhInstance;