X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92b0a2a13ccaaa23a97964ff35cdaf39dd44a104..a9d3371aec4154b69b46115c2b62d57306f26048:/src/msw/statbox.cpp diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index fb017bd219..2689d61fc9 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -5,8 +5,8 @@ // Modified by: // Created: 04/01/98 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Copyright: (c) Julian Smart +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -76,7 +76,12 @@ bool wxStaticBox::Create(wxWindow *parent, // after removing WS_EX_TRANSPARENT bit) and so let's use it until // we fix the real underlying problem if ( !MSWCreateControl(wxT("BUTTON"), BS_GROUPBOX, pos, size, label, - WS_EX_TRANSPARENT) ) +#ifdef __WXWINCE__ + 0 +#else + WS_EX_TRANSPARENT +#endif + ) ) return FALSE; // to be transparent we should have the same colour as the parent as well @@ -103,6 +108,7 @@ long wxStaticBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) { switch ( nMsg ) { +#ifndef __WXWINCE__ case WM_NCHITTEST: // FIXME: this hack is specific to dialog ed, shouldn't it be // somehow disabled during normal operation? @@ -118,7 +124,7 @@ long wxStaticBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) return (long)HTCLIENT; } break; - +#endif case WM_ERASEBKGND: // prevent wxControl from processing this message because it will // erase the background incorrectly and there is no way for us to