X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f79eb791ac98442e4813fd06b884ce91cab2e67..65ab10020b0905a4f5b99ec8c1df2ef81838ff35:/src/msw/toplevel.cpp diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index af3dd67586..6cd98fe487 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -145,7 +145,7 @@ void wxTopLevelWindowMSW::Init() m_winLastFocused = (wxWindow *)NULL; -#ifdef __SMARTPHONE__ +#if defined(__SMARTPHONE__) && defined(__WXWINCE__) m_MenuBarHWND = 0; #endif } @@ -166,15 +166,11 @@ WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const // first select the kind of window being created // // note that if we don't set WS_POPUP, Windows assumes WS_OVERLAPPED and - // creates a window with both caption and border, hence we also test it - // below in some other cases - if ( style & wxFRAME_TOOL_WINDOW ) - { - msflags |= WS_POPUP; - } - //else: WS_OVERLAPPED is 0 anyhow, so it is on by default + // creates a window with both caption and border, hence we need to use + // WS_POPUP in a few cases just to avoid having caption/border which we + // don't want -#ifndef __SMARTPHONE__ +#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__)) // border and caption styles if ( style & wxRESIZE_BORDER ) msflags |= WS_THICKFRAME; @@ -529,7 +525,7 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent, } #endif -#ifdef __SMARTPHONE__ +#if defined(__SMARTPHONE__) && defined(__WXWINCE__) SetRightMenu(); // to nothing for initialization #endif @@ -907,7 +903,7 @@ void wxTopLevelWindowMSW::RequestUserAttention(int flags) // check if we can use FlashWindowEx(): unfortunately an explicit test for // FLASHW_STOP, for example, doesn't work because MSVC6 headers do #define // it but don't provide FlashWindowEx() declaration -#if WINVER >= 0x0500 +#if (WINVER >= 0x0500 && (defined FLASHW_STOP)) // available in the headers, check if it is supported by the system typedef BOOL (WINAPI *FlashWindowEx_t)(FLASHWINFO *pfwi); FlashWindowEx_t s_pfnFlashWindowEx = NULL;