X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4676948b6814c97b93c431a8cbcd8c0352c87ba9..3ac7b44cc0765b8444324d71b58cf648009d41c2:/src/msw/settings.cpp?ds=inline diff --git a/src/msw/settings.cpp b/src/msw/settings.cpp index 1c5c52d672..6087406cf4 100644 --- a/src/msw/settings.cpp +++ b/src/msw/settings.cpp @@ -200,7 +200,11 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) if ( !hasCol ) { +#ifdef __WXWINCE__ + colSys = ::GetSysColor(index|SYS_COLOR_INDEX_FLAG); +#else colSys = ::GetSysColor(index); +#endif } return wxRGBToColour(colSys); @@ -246,6 +250,14 @@ wxFont wxCreateFontFromStockObject(int index) wxFont wxSystemSettingsNative::GetFont(wxSystemFont index) { + // this one is special: we don't get it from GetStockObject() + if ( index == wxSYS_ICONTITLE_FONT ) + { + LOGFONT lf; + SystemParametersInfo(SPI_GETICONTITLELOGFONT, sizeof(lf), &lf, 0); + return wxCreateFontFromLogFont(&lf); + } + // wxWindow ctor calls GetSystemFont(wxSYS_DEFAULT_GUI_FONT) so we're // called fairly often - this is why we cache this particular font bool isDefaultRequested = index == wxSYS_DEFAULT_GUI_FONT;