Allow MSW Base be usable in other ports than wxMSW (ie. wxTVision in windows console). Adjustements for limited setup.h (as in wxTV) and minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -78,13 +78,21 @@ of MSW, MAC and OS2
|
||||
|
||||
// Turn USE_MODAL_PRESENTATION to 0 if there is any reason for not presenting difference
|
||||
// between modal and modeless dialogs (ie. not implemented it in your port yet)
|
||||
#if defined(__SMARTPHONE__)
|
||||
#if defined(__SMARTPHONE__) || !wxUSE_BOOKCTRL
|
||||
#define USE_MODAL_PRESENTATION 0
|
||||
#else
|
||||
#define USE_MODAL_PRESENTATION 1
|
||||
#endif
|
||||
|
||||
|
||||
// Turn USE_SETTINGS_DIALOG to 0 if supported
|
||||
#if wxUSE_BOOKCTRL
|
||||
#define USE_SETTINGS_DIALOG 1
|
||||
#else
|
||||
#define USE_SETTINGS_DIALOG 0
|
||||
#endif
|
||||
|
||||
|
||||
// Define a new application type
|
||||
class MyApp: public wxApp
|
||||
{
|
||||
@@ -128,6 +136,7 @@ private:
|
||||
|
||||
#endif // USE_MODAL_PRESENTATION
|
||||
|
||||
#if USE_SETTINGS_DIALOG
|
||||
// Property sheet dialog
|
||||
class SettingsDialog: public wxPropertySheetDialog
|
||||
{
|
||||
@@ -154,6 +163,8 @@ protected:
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
#endif // USE_SETTINGS_DIALOG
|
||||
|
||||
// Define a new frame type
|
||||
class MyFrame: public wxFrame
|
||||
{
|
||||
|
Reference in New Issue
Block a user