X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe3d9123c6968b452a95133c635069d6f7ae8ea5..dd38c87578df7a24a491401c943988e2bc89b62b:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index a3e8a83329..c715296bcf 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1156,7 +1156,7 @@ void wxWindowMSW::SetWindowStyleFlag(long flags) WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const { // translate the style - WXDWORD style = WS_CHILD; + WXDWORD style = WS_CHILD | WS_VISIBLE; if ( flags & wxCLIP_CHILDREN ) style |= WS_CLIPCHILDREN; @@ -1171,7 +1171,8 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const // is a more neutral term, we don't necessarily get a sunken effect in // Windows XP. Instead we get the appropriate style for the theme. - if (border == wxBORDER_DEFAULT && wxTheApp->GetAuto3D() && GetParent() && + if (border == wxBORDER_DEFAULT && wxTheApp->GetAuto3D() && + GetParent() && GetParent()->IsKindOf(CLASSINFO(wxPanel)) && ((GetParent()->GetWindowStyleFlag() & wxUSER_COLOURS) != wxUSER_COLOURS)) { border = (wxBorder)((flags & wxBORDER_MASK) | wxBORDER_SUNKEN); @@ -1415,12 +1416,10 @@ void wxWindowMSW::Update() // drag and drop // --------------------------------------------------------------------------- -//FIXME __DIGITALMARS__ does not honor drag drop in setup.h #if wxUSE_DRAG_AND_DROP void wxWindowMSW::SetDropTarget(wxDropTarget *pDropTarget) { -#ifndef __DIGITALMARS__ if ( m_dropTarget != 0 ) { m_dropTarget->Revoke(m_hWnd); delete m_dropTarget; @@ -1429,7 +1428,6 @@ void wxWindowMSW::SetDropTarget(wxDropTarget *pDropTarget) m_dropTarget = pDropTarget; if ( m_dropTarget != 0 ) m_dropTarget->Register(m_hWnd); -#endif // __DIGITALMARS__ } #endif // wxUSE_DRAG_AND_DROP @@ -1437,11 +1435,9 @@ void wxWindowMSW::SetDropTarget(wxDropTarget *pDropTarget) // DragAcceptFiles in parallel with SetDropTarget. void wxWindowMSW::DragAcceptFiles(bool accept) { -#ifndef __DIGITALMARS__ HWND hWnd = GetHwnd(); if ( hWnd ) ::DragAcceptFiles(hWnd, (BOOL)accept); -#endif } // ---------------------------------------------------------------------------- @@ -3246,7 +3242,6 @@ bool wxWindowMSW::HandleDestroy() // delete our drop target if we've got one #if wxUSE_DRAG_AND_DROP -#ifndef __DIGITALMARS__ if ( m_dropTarget != NULL ) { m_dropTarget->Revoke(m_hWnd); @@ -3254,7 +3249,6 @@ bool wxWindowMSW::HandleDestroy() delete m_dropTarget; m_dropTarget = NULL; } -#endif //#ifndef __DIGITALMARS__ #endif // wxUSE_DRAG_AND_DROP // WM_DESTROY handled @@ -3368,8 +3362,7 @@ bool wxWindowMSW::HandleInitDialog(WXHWND WXUNUSED(hWndFocus)) bool wxWindowMSW::HandleDropFiles(WXWPARAM wParam) { -//FIX ME __DIGITALMARS__ -#if defined (__WXMICROWIN__) || defined (__DIGITALMARS__) +#if defined (__WXMICROWIN__) return FALSE; #else // __WXMICROWIN__ HDROP hFilesInfo = (HDROP) wParam;