From: Julian Smart Date: Sun, 22 May 2005 14:07:32 +0000 (+0000) Subject: WinCE fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f8c10795d589c024dc7fc3640087a48a1ec612ce?ds=inline WinCE fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index f1f0d92202..8bb3fcd982 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -635,7 +635,10 @@ bool wxLaunchDefaultBrowser(const wxString& url) sei.hIcon = NULL; sei.hInstApp = NULL; sei.hkeyClass = NULL; + // Not in WinCE +#if 0 sei.hMonitor = NULL; +#endif sei.hProcess = NULL; sei.hwnd = NULL; sei.lpClass = NULL; diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index da41a256e0..b58d672d58 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -457,7 +457,7 @@ bool wxCheckBox::MSWOnDraw(WXDRAWITEMSTRUCT *item) // to it without breaking backwards compatibility // classic Win32 version -- this can be useful when we move this into -#if 0 +#ifdef __WXWINCE__ UINT state = DFCS_BUTTONCHECK; if ( !IsEnabled() ) state |= DFCS_INACTIVE; diff --git a/src/msw/settings.cpp b/src/msw/settings.cpp index 602d3f8e62..69aebf7fc1 100644 --- a/src/msw/settings.cpp +++ b/src/msw/settings.cpp @@ -225,12 +225,13 @@ wxFont wxCreateFontFromStockObject(int index) { wxNativeFontInfo info; info.lf = lf; +#ifndef __WXWINCE__ // We want Windows 2000 or later to have new fonts even MS Shell Dlg // is returned as default GUI font for compatibility int verMaj; if(index == DEFAULT_GUI_FONT && wxGetOsVersion(&verMaj) == wxWINDOWS_NT && verMaj >= 5) wxStrcpy(info.lf.lfFaceName, wxT("MS Shell Dlg 2")); - +#endif // Under MicroWindows we pass the HFONT as well // because it's hard to convert HFONT -> LOGFONT -> HFONT // It's OK to delete stock objects, the delete will be ignored.