From d15383ce6ec367bc17d227b0ebd62ac1096175bd Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 5 Feb 2016 09:54:11 +0100 Subject: [PATCH] Work on wxAppEx continues... --- build/wxExtend.vcxproj | 2 ++ build/wxExtend.vcxproj.filters | 6 ++++++ include/wxex/appbar.h | 1 + include/wxex/appex.h | 9 ++++++++- src/stdafx.h | 5 ++++- 5 files changed, 21 insertions(+), 2 deletions(-) diff --git a/build/wxExtend.vcxproj b/build/wxExtend.vcxproj index 5427335..d6f4265 100644 --- a/build/wxExtend.vcxproj +++ b/build/wxExtend.vcxproj @@ -20,6 +20,7 @@ + Create Create @@ -29,6 +30,7 @@ + diff --git a/build/wxExtend.vcxproj.filters b/build/wxExtend.vcxproj.filters index ec75aac..7f2eee1 100644 --- a/build/wxExtend.vcxproj.filters +++ b/build/wxExtend.vcxproj.filters @@ -21,6 +21,9 @@ Source Files + + Source Files + @@ -32,5 +35,8 @@ Header Files + + Header Files + \ No newline at end of file diff --git a/include/wxex/appbar.h b/include/wxex/appbar.h index 2f2cd0a..bae751f 100644 --- a/include/wxex/appbar.h +++ b/include/wxex/appbar.h @@ -24,6 +24,7 @@ #include #include +#include #define wxABT_AUTOHIDETIMERID 1 diff --git a/include/wxex/appex.h b/include/wxex/appex.h index 1ec3765..7b08537 100644 --- a/include/wxex/appex.h +++ b/include/wxex/appex.h @@ -20,6 +20,7 @@ #pragma once #include +#include /// @@ -28,8 +29,14 @@ class wxAppEx : public wxApp { public: + /// + /// Called when application initializes. + /// + /// \returns + /// - true if initialization succeeded + /// - false otherwise virtual bool OnInit(); protected: - wxLocale m_locale; + wxLocale m_locale; ///< Current locale }; diff --git a/src/stdafx.h b/src/stdafx.h index d73f3b6..439ed65 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -19,10 +19,13 @@ #pragma once +// Since including introduces wrong include order in 3.0.2, +// include the grand at a cost of longer pre-compilation phase. +#include + #include "../include/wxex/appbar.h" #include "../include/wxex/appex.h" #include "../include/wxex/common.h" #include -#include